How to set NodeID in 2.1.1
-
Hi,
I have a mysensors network since a while and running 1.5 so now have started to upgrade to 2.1.1.
In the sketches - how can I set the NodeID (not ChildNodeID)?
/ Joacim
-
@jocke4u #define MY_NODE_ID 1 or whatever...
-
Thanks, getting warnings that MY_NODE_ID is already declared
#define MY_NODE_ID AUTO
Is it a way to override that in a proper way?
Tried:
#ifndef MY_NODE_ID #define MY_NODE_ID 5 // my own ID is 5 #endif
Seems to work BUT is it correct way to do it?
-
Just
#define MY_NODE_ID 5
Before the line
#include <MySensors.h>
Should work fine
-
Thanks - works just fine