Responding to a Gateway Query
-
Greetings All,
Hek was kind enough to suggest the ways and means of querying a node for data. I have my nodes set up to send data automatically. I would like to test for the incoming query with an "IF" statement but, once again, I need a push. I cannot seem to incorporate my incomingMessage () without compiling errors, probably because I do not know what I am doing.
If I may be so bold as to request a bit of code, what might I place into an "IF" statement or my void loop to test for when the gateway has sent a request for information?
Right now, I have my gateway sending the following code: 1;3;2;0;39\n which translates into a no-ack (0) request for data (2) from node 1, child sensor 3, in the form of a current level reading (39). I just don't know how to respond to this request. All advice is greatly appreciated! Directions to an example would be great, as well, because I do not know what to search for.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 19 days ago • Commodoreuno 13 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 19 Mar 2025, 21:00 • bocalexandru 21 Mar 2025, 12:05 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 3 Mar 2025, 01:00 -
NODs stop responding, but ping works.
Troubleshooting • 8 Mar 2025, 19:47 • Marcin 8 Mar 2025, 19:47