MySensors Library & Examples
2.3.2
|
These options are specific to the RF24 family of wireless transport modules.
The following chips are supported by this driver:
Vendor | Chip |
---|---|
Nordic Semiconductor | nRF24L01 |
nRF24L01+ | |
Beken Corporation | BK2401 |
BK2421 | |
BK2491 | |
Hope Microelectronics | RFM70 |
RFM73 | |
Panchip Microelectronics | XN297 |
Silicon Labs(?) | SI24R1 |
Macros | |
#define | MY_RADIO_NRF24 |
Define this to use a RF24-based radio transport for sensor network communication. More... | |
#define | MY_RADIO_RF24 |
Define this to use a RF24-based radio transport for sensor network communication. | |
#define | MY_RF24_ENABLE_ENCRYPTION |
Define this to enable software based AES encryption. More... | |
#define | MY_DEBUG_VERBOSE_RF24 |
Define this for verbose debug prints related to the RF24 driver. | |
#define | MY_RF24_SPI_SPEED (2*1000000ul) |
Define this if you need to run the SPI clock at a different frequency than the default. More... | |
#define | MY_RF24_CE_PIN (DEFAULT_RF24_CE_PIN) |
Define this to change the chip enable pin from the default. | |
#define | MY_RF24_CS_PIN (DEFAULT_RF24_CS_PIN) |
Define this to change the chip select pin from the default. | |
#define | MY_RF24_IRQ_PIN |
Define this to use the IRQ pin of the RF24 module (optional). | |
#define | MY_RF24_POWER_PIN |
Define this to use the RF24 power pin (optional). | |
#define | MY_RX_MESSAGE_BUFFER_FEATURE |
This enables the receiving buffer feature. More... | |
#define | MY_RX_MESSAGE_BUFFER_SIZE |
Define this to change the incoming message buffer size from the default. More... | |
#define | MY_RF24_PA_LEVEL (RF24_PA_HIGH) |
Default RF24 PA level. Override in sketch if needed. More... | |
#define | MY_RF24_CHANNEL (76) |
RF channel for the sensor net, 0-125. More... | |
#define | MY_RF24_DATARATE (RF24_250KBPS) |
RF24 data rate. More... | |
#define | MY_RF24_BASE_RADIO_ID 0x00,0xFC,0xE1,0xA8,0xA8 |
RF24 radio network identifier. More... | |
#define | MY_RF24_ADDR_WIDTH (5) |
RF24 base address width. | |
#define MY_RADIO_NRF24 |
Define this to use a RF24-based radio transport for sensor network communication.
Definition at line 2331 of file MyConfig.h.
#define MY_RF24_BASE_RADIO_ID 0x00,0xFC,0xE1,0xA8,0xA8 |
RF24 radio network identifier.
This acts as base value for sensor nodeId addresses. Change this (or channel) if you have more than one sensor network.
Definition at line 446 of file MyConfig.h.
#define MY_RF24_CHANNEL (76) |
RF channel for the sensor net, 0-125.
Frequencies: 2400 Mhz - 2525 Mhz
Channels: 126
In some countries there might be limitations, in Germany for example only the range 2400,0 - 2483,5 Mhz is allowed.
Definition at line 420 of file MyConfig.h.
#define MY_RF24_DATARATE (RF24_250KBPS) |
RF24 data rate.
Definition at line 435 of file MyConfig.h.
#define MY_RF24_ENABLE_ENCRYPTION |
Define this to enable software based AES encryption.
All nodes and gateway must have this enabled, and all must be personalized with the same AES key.
Definition at line 2335 of file MyConfig.h.
#define MY_RF24_PA_LEVEL (RF24_PA_HIGH) |
Default RF24 PA level. Override in sketch if needed.
Definition at line 396 of file MyConfig.h.
#define MY_RF24_SPI_SPEED (2*1000000ul) |
Define this if you need to run the SPI clock at a different frequency than the default.
Default nRF24L01+ SPI speed, 2MHz should be safe for nRF24L01+ clones.
Definition at line 330 of file MyConfig.h.
#define MY_RX_MESSAGE_BUFFER_FEATURE |
This enables the receiving buffer feature.
This feature is currently not supported for anything but RF24. Require MY_RF24_IRQ_PIN to be set.
Note: Not supported on ESP8266, ESP32, STM32, nRF5 and sketches that use SoftSPI. See below issue for details https://github.com/mysensors/MySensors/issues/1128
Definition at line 2336 of file MyConfig.h.
#define MY_RX_MESSAGE_BUFFER_SIZE |
Define this to change the incoming message buffer size from the default.
Require MY_RX_MESSAGE_BUFFER_FEATURE to be set.
Definition at line 2337 of file MyConfig.h.