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 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
PJON and Minicore not working
Development • 27 days ago • Trand 27 days ago -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
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