Where do I set the sensor ID?
-
I am going to use openHAB as my controller and as for as I can tell I need to manually set sensor IDs for each bit of kit in my network. I am using a serial gateway, well, was but am currently faultfinding it, and I have a motion sensor that seems to have picked up id 105, I am assuming from the sketch. I can't find 105 anywhere in the sketch for the moion sensor so where is this likely to have come from and how do I set the id for other sensors?
Cheers -
Use gw.begin(NULL, AUTO, true) change auto to nodeID and true to false if you have battery sensor
1 argument if incoming messages
2 argument is node id
3 argument is repeater modeAbove is for 1.5.x
-
Use gw.begin(NULL, AUTO, true) change auto to nodeID and true to false if you have battery sensor
1 argument if incoming messages
2 argument is node id
3 argument is repeater modeAbove is for 1.5.x
@sundberg84
Thanks. I don't know where the motion sensor is picking up 105 then as the gw.begin() is just that with no parameters at all. :unamused: -
Try resetting the node with the cleareeprom sketch (available in the examples folder). Then re-flash your sketch and hopefully it will be back to normal.
@mfalkvidd
Thanks! I have now set a value of 1 and lo and behold sensor 1 is now talking to the gateway. I vaguely remeber testing eeprom storing values by using a button that advanced a value by one and then stored it. It must have been this Uno I did it on and I must have hit the button 105 times :-)
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