<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[When the device is turning OFF; condition.]]></title><description><![CDATA[<p dir="auto">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.<br />
Someting like:</p>
<p dir="auto">if (M5.TurningOFF()) {<br />
do_it_someting();<br />
}</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.m5stack.com/topic/4156/when-the-device-is-turning-off-condition</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 13:51:11 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4156.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Mar 2022 00:09:57 GMT</pubDate><ttl>60</ttl></channel></rss>