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 .


 

264
Online

8.4k
Users

9.3k
Topics

97.8k
Posts