Send message for another node.
-
From sensor with ID 3 want to send message for scene controller ID 10.
Can't see if it possible?
May be possible add this way ?
MyMessage msgOn(CHILD_ID_SCENE, V_SCENE_ON, NODE_ID);
-
msgOn.setDestination(10);
-
not good enough explained first time.
I got Arduino SceneCtrl 13:3 and i can control it from this node.
13;3;1;0;19;3
13;3;1;0;20;3
And I want send the same command to the gateway
13;3;1;0;19;3
13;3;1;0;20;3
but from Node 10
-
You'll have to do two sends to archive this.
-
one from Node 10 to 13 with msgOn.setDestination(13);
and redirect message through 13 to gateway
am i understood right?
-
@hek
I am currently trying to send a message from one node to another, but am facing some trouble with it.
I have two nodes, both of them with Motion Sensors attached to them. I want one node to send a message
to the other node when there is motion detected. On the other node, the received message should be saved in a variable.
Looking through other posts I wasn't capable of finding an example I could modify for my purposes. I know there is this function for receiving messages:void incomingMessage(const MyMessage &message)
but how do I continue? Also, how to send a message? Can you pls give me example code for that?
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 3 days ago -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 13 days ago -
Human presence sensors....
General Discussion • 31 Jan 2025, 10:54 • skywatch 9 Feb 2025, 19:36 -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 4 days ago -
Combination of networks
General Discussion • 1 Feb 2025, 17:30 • Sniker 4 Feb 2025, 01:02