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

  • 7
  • 4
  • 4
  • 3
  • 8
  • 5
  • 7
  • 101

329
Online

9.1k
Users

9.8k
Topics

101.9k
Posts