New CHILD ID after reprogramming
-
How can i keep from mixing the CHILD id every time of my sensor node?
i defined#define CHILD_ID 5 #define CHILD_ID_PIR1 0 #define CHILD_ID_DOOR1 1 #define CHILD_ID_TEMP1 2But the Serial debug shows:
4 TSF:WUR:MS=0 11 TSM:INIT:TSP OK 13 TSF:SID:OK,ID=7 14 TSM:FPARThus having a sensor node where i tell them to be 5 and it is 7 ?
-
How can i keep from mixing the CHILD id every time of my sensor node?
i defined#define CHILD_ID 5 #define CHILD_ID_PIR1 0 #define CHILD_ID_DOOR1 1 #define CHILD_ID_TEMP1 2But the Serial debug shows:
4 TSF:WUR:MS=0 11 TSM:INIT:TSP OK 13 TSF:SID:OK,ID=7 14 TSM:FPARThus having a sensor node where i tell them to be 5 and it is 7 ?
-
No i did not :
//define MY_DEBUG #define MY_RADIO_NRF24 #include <MySensors.h> #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 8 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); #define CHILD_ID 5 #define CHILD_ID_PIR1 0 #define CHILD_ID_DOOR1 1 #define CHILD_ID_TEMP1 2 #define DOOR_SWITCH 3 #define PIR_INSIDE 2 MyMessage msgPIR1(CHILD_ID_PIR1, V_TRIPPED); MyMessage msgDOOR1(CHILD_ID_DOOR1, V_TRIPPED); MyMessage msgTEMP1(CHILD_ID_TEMP1, V_TEMP); // temp ``` -
@Richard-van-der-Plas said in New CHILD ID after reprogramming:
#define CHILD_ID 5
actually you have to add #define MY_NODE_ID 5 before the #include <MySensors.h>
-
This post is deleted!
-
@gohan said in New CHILD ID after reprogramming:
#define MY_NODE_ID 5
aha MY_NODE_ID, instead of CHILD_ID :+1:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login