Reset node from gateway
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:
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)