Reset node from gateway


  • Hardware Contributor

    Hi,

    As part of my ESP8266 MQTT gateway with web page project I added an overview of all presented nodes with timestamp of presentation and so forth. And a button to reset that specific node. Might come in handy for whatever reason.

    My code looks like this:

      MyMessage rstMsg(255, C_INTERNAL);
      mSetCommand(rstMsg, C_INTERNAL);
      rstMsg.type = I_REBOOT;
      rstMsg.destination = node;
    

    and the resulting info in the serial monitor is:

    0;255;3;0;9;TSF:MSG:SEND,0-0-20-20,s=255,c=1,t=13,pt=0,l=0,sg=0,ft=0,st=OK:
    

    But still the node does not reset (and send a new presentation packet) What am I doing wrong here?

    Note: This is for node 20, and I send the command to sensor 255 (arduino sensor)


 

436
Online

7.9k
Users

8.8k
Topics

93.8k
Posts