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 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
PJON and Minicore not working
Development • 13 days ago • Trand 13 days ago -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07