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); -
@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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login