<?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[M5Stack and Blynk]]></title><description><![CDATA[<p dir="auto">I'm trying to get the M5Stack working with Blynk.  I tried to compile a basic Blynk sketch and it's not working.</p>
<hr />
<p dir="auto">#define BLYNK_PRINT Serial</p>
<p dir="auto">#include &lt;M5Stack.h&gt;<br />
#include &lt;BlynkSimpleEsp32.h&gt;</p>
<p dir="auto">// You should get Auth Token in the Blynk App.<br />
// Go to the Project Settings (nut icon).<br />
char auth[] = "my_auth_token";</p>
<p dir="auto">// Your WiFi credentials.<br />
char ssid[] = "my_ssid";<br />
char pass[] = "my_ssid_password";</p>
<p dir="auto">void setup()<br />
{<br />
// Debug console<br />
Serial.begin(9600);</p>
<p dir="auto">Blynk.begin(auth, ssid, pass);<br />
}</p>
<p dir="auto">void loop()<br />
{<br />
Blynk.run();<br />
}</p>
<hr />
<p dir="auto">The Arduino errors are:</p>
<p dir="auto">Arduino: 1.8.5 (Mac OS X), Board: "M5Stack-Core-ESP32, QIO, 80MHz, 921600, None"</p>
<p dir="auto">In file included from /Users/world101/Documents/Arduino/libraries/Blynk/src/Blynk/BlynkApi.h:17:0,<br />
from /Users/world101/Documents/Arduino/libraries/Blynk/src/BlynkApiArduino.h:14,<br />
from /Users/world101/Documents/Arduino/libraries/Blynk/src/BlynkSimpleEsp32.h:20,<br />
from /Users/world101/Documents/Arduino/m5stack_blynk/m5stack_blynk.ino:38:<br />
/Users/world101/Documents/Arduino/libraries/Blynk/src/Blynk/BlynkTimer.h:38:36: error: conflicting declaration 'typedef void (* timer_callback)()'<br />
typedef void (*timer_callback)(void);<br />
^<br />
In file included from /Users/world101/Documents/Arduino/libraries/M5Stack/src/M5Stack.h:94:0,<br />
from /Users/world101/Documents/Arduino/m5stack_blynk/m5stack_blynk.ino:37:<br />
/Users/world101/Documents/Arduino/libraries/M5Stack/src/utility/M5Timer.h:34:35: note: previous declaration as 'typedef class std::function&lt;void()&gt; timer_callback'<br />
typedef std::function&lt;void(void)&gt; timer_callback;<br />
^<br />
Multiple libraries were found for "WiFi.h"<br />
Used: /Users/world101/Documents/Arduino/hardware/espressif/esp32/libraries/WiFi<br />
Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi<br />
Multiple libraries were found for "SD.h"<br />
Used: /Users/world101/Documents/Arduino/hardware/espressif/esp32/libraries/SD<br />
Not used: /Users/world101/Documents/Arduino/libraries/SD<br />
Not used: /Applications/Arduino.app/Contents/Java/libraries/SD<br />
exit status 1<br />
Error compiling for board M5Stack-Core-ESP32.</p>
<p dir="auto">This report would have more information with<br />
"Show verbose output during compilation"<br />
option enabled in File -&gt; Preferences.</p>
<hr />
<p dir="auto">If I comment out #include &lt;M5Stack.h&gt; it will compile fine, but I don't get to use any of the M5 functions like M5.Lcd.printf().</p>
<p dir="auto">Any ideas on how to fix it?</p>
<p dir="auto">I also tried the DH12 example from github and get similar errors.<br />
<a href="https://github.com/m5stack/M5Stack/tree/master/examples/Advanced/Blynk/Post-DHT12" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/tree/master/examples/Advanced/Blynk/Post-DHT12</a></p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.m5stack.com/topic/138/m5stack-and-blynk</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 04:24:28 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/138.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Mar 2018 14:33:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack and Blynk on Sun, 18 Mar 2018 23:07:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a>  Really glad you raised this question and found a solution... I have wanted to use it for quite a while but hadn't chased it.... thanks. Will test it out.</p>
]]></description><link>https://community.m5stack.com/post/613</link><guid isPermaLink="true">https://community.m5stack.com/post/613</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Sun, 18 Mar 2018 23:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack and Blynk on Sat, 17 Mar 2018 22:32:06 GMT]]></title><description><![CDATA[<p dir="auto">After further digging for the error, I found the following which has the solution.</p>
<p dir="auto"><a href="https://github.com/m5stack/M5Stack/issues/32" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/issues/32</a></p>
<p dir="auto">I modified the header file Arduino/libraries/M5Stack/src/utility/M5Timer.h as follows.</p>
<pre><code>//typedef std::function&lt;void(void)&gt; timer_callback;
typedef void (*timer_callback)(void);
typedef void (*timer_callback_p)(void *);
</code></pre>
<p dir="auto">It now builds successfully and connects to the blynk cloud :-)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a>  FYI... please add this to fix on the next release.</p>
]]></description><link>https://community.m5stack.com/post/611</link><guid isPermaLink="true">https://community.m5stack.com/post/611</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sat, 17 Mar 2018 22:32:06 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack and Blynk on Sat, 17 Mar 2018 21:32:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a>  <a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a>  Hi World101,</p>
<p dir="auto">I got the same error trying to compile Blynk - PostDHT12 using the one in the list of M5Stack examples.</p>
<p dir="auto">But it looks like it worked back in September :   <a href="https://twitter.com/M5Stack/status/907633635796193281" target="_blank" rel="noopener noreferrer nofollow ugc">https://twitter.com/M5Stack/status/907633635796193281</a></p>
<p dir="auto">Perhaps something got broken since then..... the blynk library was updated Dec 22nd....<br />
<a href="https://twitter.com/blynk_app" target="_blank" rel="noopener noreferrer nofollow ugc">https://twitter.com/blynk_app</a></p>
<p dir="auto">Or another file update perhaps.......</p>
<p dir="auto"><strong>Anyone got it working ?</strong></p>
]]></description><link>https://community.m5stack.com/post/606</link><guid isPermaLink="true">https://community.m5stack.com/post/606</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Sat, 17 Mar 2018 21:32:25 GMT</pubDate></item></channel></rss>