<?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[ESP-NOW uiflow callback function not triggering]]></title><description><![CDATA[<p dir="auto">Hello All,<br />
I cannot get the uiflow espnow callback <code>(espnow.recv_cb(recv_cb))</code> to trigger from espnow messages sent from an Arduino IDE based or none-M5Stack micropython based ESP32.  I can send and receive espnow data between 2  Arduino IDE based ESP32s.  I can also send and receive espnow data between 2 uiflow M5Stack ESP32s.  And I can also send and receive espnow data between an Arduino IDE and none-M5Stack micopython based ESP32.</p>
<p dir="auto">I using a Core2 and M5StickC Plus for testing.</p>
<p dir="auto">The message is sent successfully based on <code>esp_now_register_send_cb(OnDataSent);</code> callback function in Arduino IDE.  And if I power down the uiFlow ESP32 device the message fails to send, expected behavior. So I believe everything it set up correctly.</p>
<p dir="auto">I can send data from a uiFlow ESP32 to a Arduino IDE based ESP32.  Although there seems to be a data alignment issue.</p>
<p dir="auto">Has anyone been able to send espnow messages from a non-uiflow ESP32 to a uiflow ESP32?</p>
<p dir="auto">How this make sense!</p>
<p dir="auto">Thank you<br />
Austin</p>
]]></description><link>https://community.m5stack.com/topic/4165/esp-now-uiflow-callback-function-not-triggering</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 16:18:22 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4165.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Mar 2022 23:16:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ESP-NOW uiflow callback function not triggering on Mon, 04 Apr 2022 18:39:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello M5Stack,<br />
Can you please post the function used to create the 10 bytes of <code>preData</code> when sending an espnow message from a device coded with uiFlow?</p>
<p dir="auto">This will allow us to send espnow messages from devices not coded with uiFlow to devices coded in uiFlow.</p>
<p dir="auto">Thanks you<br />
Austin</p>
]]></description><link>https://community.m5stack.com/post/17091</link><guid isPermaLink="true">https://community.m5stack.com/post/17091</guid><dc:creator><![CDATA[austin]]></dc:creator><pubDate>Mon, 04 Apr 2022 18:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to ESP-NOW uiflow callback function not triggering on Thu, 31 Mar 2022 13:20:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello All,<br />
Me again.  After doing some testing I determined that the uiFlow code is adding 10 bytes of information (<code>preData</code>) to the beginning of the text being sent.  Maybe some type of checksum. This can be seem <a href="https://community.m5stack.com/topic/2202/esp-now-uiflow-to-arduino/3">here</a>.</p>
<p dir="auto">Most the <code>preData</code> bytes are constant, either <code>1</code> or <code>0</code>. Below is <code>preData</code> I created in the Arduino IDE and sent to a M5StickC Plus to get the receive callback to be triggered.</p>
<pre><code>// Sent from Arduino IDE, ESP32, #include &lt;esp_now.h&gt;
// The 3 combinations for header3, header5, header6 and cmd after the comment (//) trigger the uiFlow receive callback.
// Changing any of the values causes the uiFlow receive callback not be to triggered
// There must be a some type of checksum calculation within the M5Stack uiFlow code.
data.header1 = 1;
data.header2 = 1;
data.header3 = 0;   // 0, 1, 2  Seems to be a counter, rolling over a 255
data.header4 = 0;
data.header5 = 222; // 222, 249, 144 Seems to be a checksum of some kind
data.header6 = 67;  // 67, 111, 27 Seems to be a checksum of some kind
data.header7 = 0;
data.header8 = 0;
data.header9 = 0;
data.header10 = 0;
strcpy(data.cmd, "on");// on, on, on
esp_now_send(broadcastAddress, (uint8_t *)&amp;data, sizeof(data));
</code></pre>
<p dir="auto">Can someone point me to the code which creates the 10 bytes of information?</p>
<p dir="auto">Thanks You<br />
Austin</p>
]]></description><link>https://community.m5stack.com/post/17063</link><guid isPermaLink="true">https://community.m5stack.com/post/17063</guid><dc:creator><![CDATA[austin]]></dc:creator><pubDate>Thu, 31 Mar 2022 13:20:37 GMT</pubDate></item></channel></rss>