Quick question about how gateways and nodes report
-
I'm trying to write a controller and am trying to account for fringe cases. Say the power turns off and then comes back on and both the gateway and sensor start simultaneously -- will the gateway always report its full startup before it receives node messages? I would assume the gateway won't respond to the find parent until after it's fully initialized, but I just want to make sure. This will help me determine when I need to create certain objects in the controller.
-
It'll send "gateway ready" when a controller connects (ethernet) or at startup (serial gw). It'll answer find parent requests regardless if a controller is connected or not.
From a controller perspective you should't have to care about the internal find-parent communication between nodes. It isn't propagated to the controller.
-
Thanks -- one other quick question: am I right in assuming a child sensors will only ever send "set" message types and will only be routed "req" types?
For example, I'll never see a message like this:
3; 3; 3; 0; 9; etc
right? Nodes would send that sort of message, but never a child:
3; 255; 3; 0; 9; etc
yes? I'm assuming this because most nodes just report a setting or get set to something, they don't have any intelligence beyond that, that all exists on the child's node.
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 • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35 -
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 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23