A stupid question...
-
When declaring/presenting sensors for a node, what it's the first id to consume, zero or one?
I was looking at the network topology when I saw that the sketch I made for relay modules, has the relays starting at 0. Where all other nodes I made are starting at 1. That's because for that relay nodes, the sketch uses a template and populates the sensors from an array, that could be passed from the network (as var, text...). So it starts with item 0. And I never looked back.
But I think the sensor 0 is reserved for internal messages isn't it?
The sensors for those nodes are presented as binary but it happens that they appear in every controller as dust sensor. Now I'm suspecting from everything.
-
- For node IDs, 0 is reserved for the gateway.
- For children of a node, you are free to use 0. In this case 255 is reserved.
-
I was not sure about it, and the paranoia took control.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Home Assistant/MySensors quirks
Development • 15 days ago • OldSurferDude 15 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14