Send message to particular Node



  • I am loving Mysensors libary...great work by the team.

    Here is mt setup:
    1 node set up(with motion sensor) and a gateway. The gateway is connected serially to Rpi and Rpi is running Controller. All works fine.

    1. I want to create another node 2 , which can send message to Node 1 . How to accomplish this ?.
    2. If I include a repeater node , can I see the data that is going through the Repeater Node ? How ?.

    any help is appreciated.


  • Admin

    Example:

    MyMessage msg(CHILD_ID,V_TRIPPED);
    msg.setDestination(1);
    ...send as usual...
    

    You'll see passing messages if you have enabled debug logs. But you cannot intercept messages (programmatically) through the current api.



  • @hek Thanks for the quick replay. I will give a try .


Log in to reply
 

Suggested Topics

  • 1
  • 1
  • 3
  • 6
  • 3
  • 2

1
Online

11.4k
Users

11.1k
Topics

112.7k
Posts