How to force ID of a sensor?
-
hello,
I need to force the ID of a node (API 2.0).
How can i do?
Regards
-
@ej3359 - #define MY_NODE_ID XX where XX is your ID.
This needs to be done before:#include <SPI.h> #include <MySensors.h>
Like:
// Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #define MY_NODE_ID 19 #include <SPI.h> #include <MySensors.h>
-
Thank's!
1 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 26 days ago -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
MYSController with MQTT Gateway (via Node Red)
Development • 11 Aug 2024, 22:35 • slt1 11 Aug 2024, 22:35 -
MQTT-Help me understand about the MQTT Gateway.
Development • about 5 hours ago • dpcons about 5 hours ago