send message to sensor on GW
-
How can i send a message to a gateway node?
I tried the following:
on the GW i added a node id parameter #define MY_NODE_ID 1 and a receive function
on another node i use setDestination for the message i want to send to the GW with the node id of the GW (1)
i expect to get into the receive function on the GW which does not happen
in the GW serial monitor i see the message getting in:
0;255;3;0;9;TSP:MSG:READ 2-2-1 s=2,c=1,t=54,pt=2,l=2,sg=0:1Can any one let em know if what i am trying to do is even possible?
-
The gateway always has node id 0.
-
@martinhjelmare you are right... still it doesn't seem to get into the receive function in the GW:
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=54,pt=2,l=2,sg=0:1
1;1;1;0;54;1
-
There is a bug in 2.0.0 where receive isn't called on incoming message if destination is gateway. It's fixed in the dev branch.
-
@martinhjelmare Thanks, i will try dev branch
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
PJON and Minicore not working
Development • 7 days ago • Trand 7 days ago -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
MQTT-Help me understand about the MQTT Gateway.
Development • 27 days ago • dpcons 16 days ago -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07