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