3-phase PV router
Loading...
Searching...
No Matches
config_rf.h
Go to the documentation of this file.
1
13
14#ifndef CONFIG_RF_H
15#define CONFIG_RF_H
16
17#include <RFM69.h>
18
39namespace RFConfig
40{
41// Frequency band - MUST match your hardware and local regulations
42// Options: RF69_433MHZ, RF69_868MHZ (Europe), RF69_915MHZ (USA)
43inline constexpr uint8_t FREQUENCY{ RF69_868MHZ };
44
45// Network configuration
46inline constexpr uint8_t NETWORK_ID{ 210 };
47inline constexpr uint8_t ROUTER_NODE_ID{ 10 };
48
49// Destination node IDs - Addresses of REMOTE devices this router talks to
50inline constexpr uint8_t GATEWAY_ID{ 1 };
51
53inline constexpr uint8_t REMOTE_NODE_ID[]{ 15, 16, 17 };
54
55// Hardware configuration
56inline constexpr bool IS_RFM69HW{ false };
57inline constexpr uint8_t POWER_LEVEL{ 31 };
58
59// Pin configuration for RFM69 module (standard SPI pins)
60inline constexpr uint8_t RF_CS_PIN{ 10 };
61inline constexpr uint8_t RF_IRQ_PIN{ 2 };
62}
63
64#endif // CONFIG_RF_H
RF Module Configuration.
Definition config_rf.h:40
constexpr uint8_t FREQUENCY
Definition config_rf.h:43
constexpr uint8_t ROUTER_NODE_ID
Definition config_rf.h:47
constexpr uint8_t REMOTE_NODE_ID[]
Node ID of each remote load unit, unit 1 first (only if REMOTE_LOADS_PRESENT=true)
Definition config_rf.h:53
constexpr uint8_t RF_IRQ_PIN
Definition config_rf.h:61
constexpr bool IS_RFM69HW
Definition config_rf.h:56
constexpr uint8_t RF_CS_PIN
Definition config_rf.h:60
constexpr uint8_t POWER_LEVEL
Definition config_rf.h:57
constexpr uint8_t NETWORK_ID
Definition config_rf.h:46
constexpr uint8_t GATEWAY_ID
Definition config_rf.h:50