how to reassign a node id?
-
How can I assign another node id to an already existing node?
When I simply change the node id in the nodes settings, it has no impact even if I reboot the node. Erasing the configuration results in an OTA with a new node id (even if I set "#define NODE_ID 99")
Any ideas?
Thanks in advance -
@dirkc In the latest version of MySensors, you can use as follows,
#define MY_NODE_ID 0x02 #include <MySensors.h>
This line should be before
#include <MySensors.h>
-
@jkandasa I did exactly this, and the gateway assigned a different node id.
I use the newest versions of MySensors (2.2), compiled all nodes and Gateway with new versions.
Can I change the node id afterwards with MyController? -
@dirkc Yes, you can change by editing node od directly. But, Seems already you tried this step. Can you try with MySensors forum? This seems like more related to MySensors lib. Kindly report back your solution.
-
Hi!,
The define should work, have you tried to add as a decimal number instead of hex?
maybe try clearing the eeprom with the example sketch, then add the line below to your sketch.
#define MY_NODE_ID 2