The library should check for radio definition in the sketch
-
Hello,
Five hours ago I decided to try the signing feature but I had some troubles so I decided to return to my old code without signing. I used #if 0 so as not to compile the part regarding signing in my code. But I have been trying for 4 hours to let the GW and nodes work again without signing.
Finally I figured out that MY_RADIO_NRF24 define was under the #if 0 and the code was compiled successfully although no radio is defined.
If I am not mistaken but I guess months ago if I did so it wouldn't compile,, not sure. But in all cases I guess the config.h may check for this and throw #error if no radio is defined.
@hek Can you check this please ?
Thanks.
-
Not defining a radio drives is and should be ok.
The gateway can be used standalone with sensors attached without any sub radio network.
-
Well I tested again not defining a radio for a sensor node (relayactuator) and it didn't compile. OK
But my issue was with GatewayW5100, if I didn't define the NRF radio, nothing work at all and nodes are not communicating with the GW.In all cases, I just needed to highlight that this may save someone's else time
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 20 days ago -
Home Assistant/MySensors quirks
Development • 15 days ago • OldSurferDude 15 days ago -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59