How to change Radio ID on Raspberry Pi Gateway with NRF24
-
Hi,
Does anybody know how to change the Radio ID on Raspberry Pi Gateway with NRF24 radio?
Equivalent to MY_NRF5_ESB_BASE_RADIO_ID for NRF5 nodes.
Thanks
-
Welcome to the forum @jacmika !
You can add options to the configure command like this:
--extra-cxxflags="-DMY_RX_MESSAGE_BUFFER_SIZE=\(32\)
See also the section called ”Advanced” at https://www.mysensors.org/build/raspberry
-
Thank you Mikael,
Would it be mean that for default Radio ID command is (including closing ")?
--extra-cxxflags="-MY_RF24_BASE_RADIO_ID=(0x00,0xFC,0xE1,0xA8,0xA8)"
-
@jacmika it would need shell escaping and it is missing the initial D. I would try something like
--extra-cxxflags="-DMY_RF24_BASE_RADIO_ID=0x00,0xFC,0xE1,0xA8,0xA8
If I recall correctly, the output of make will show which defines are activated, and what values they have. That's what I usually use to check if I got it right.