Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Please I need a method to apply a condition when the device is turning OFF. I want to send a message via MQTT with the status {"dev":"OFF"} before is turned off. Someting like:
if (M5.TurningOFF()) { do_it_someting(); }
Thanks.