<?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[Unable to compile BasicMQTT - code error]]></title><description><![CDATA[<p dir="auto">I am trying to run the BasicMQTT example but get the following error.</p>
<p dir="auto">/*****************************************<br />
C:\Users\SteveV\Documents\ESP32_WROOM-Devkit\Projects\BasicMQTT\BasicMQTT.ino: In function 'void setup()':<br />
C:\Users\SteveV\Documents\ESP32_WROOM-Devkit\Projects\BasicMQTT\BasicMQTT.ino:42:3: error: 'ledcSetup' was not declared in this scope<br />
42 |   ledcSetup(led::LED_CHANNEL, led::LED_FREQ, led::LED_BITS); // channel, freq, resolution_bits<br />
|   ^~~~~~~~~<br />
C:\Users\SteveV\Documents\ESP32_WROOM-Devkit\Projects\BasicMQTT\BasicMQTT.ino:43:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?<br />
43 |   ledcAttachPin(led::LED_BUILTIN, led::LED_CHANNEL);<br />
|   ^~~~~~~~~~~~~<br />
|   ledcAttach</p>
<p dir="auto">exit status 1</p>
<p dir="auto">Compilation error: 'ledcSetup' was not declared in this scope<br />
*******************************************/</p>
<p dir="auto">I have reloaded the code from the web and from the code snippet - both give same error.</p>
<p dir="auto">Where are the two functions in error supposed to reside?<br />
Cheers</p>
]]></description><link>https://forum.gui-o.com/topic/202/unable-to-compile-basicmqtt-code-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 23:39:38 GMT</lastBuildDate><atom:link href="https://forum.gui-o.com/topic/202.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jun 2024 09:28:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Sat, 15 Jun 2024 09:55:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@Sato</a> I will update the example, so it is compatible with the new esp32 version.</p>
]]></description><link>https://forum.gui-o.com/post/864</link><guid isPermaLink="true">https://forum.gui-o.com/post/864</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Sat, 15 Jun 2024 09:55:55 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Sat, 15 Jun 2024 09:54:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/862">@SteveV</a> No problem! Happy to help!</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://forum.gui-o.com/post/863</link><guid isPermaLink="true">https://forum.gui-o.com/post/863</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Sat, 15 Jun 2024 09:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Fri, 14 Jun 2024 15:34:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">"The ESP32 by Espressif Systems v3.0.1 has been installed."</p>
<p dir="auto">With the v3.0.1 my code not compile and show many errors</p>
<p dir="auto">Install instead v.2.0</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.gui-o.com/post/862</link><guid isPermaLink="true">https://forum.gui-o.com/post/862</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Fri, 14 Jun 2024 15:34:04 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Fri, 14 Jun 2024 14:23:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a> Hi Klemen,<br />
That certainly fixed the problem - I went back to v2.0.17<br />
I'm a bit long-in-the tooth and I'm not as switched on as I used to be. Thankfully I (we) have a wonderful mentor in yourself, and one who readily picks up the slack when people like me struggle. Thanks for your on-going support.<br />
Cheers Steve</p>
]]></description><link>https://forum.gui-o.com/post/861</link><guid isPermaLink="true">https://forum.gui-o.com/post/861</guid><dc:creator><![CDATA[SteveV]]></dc:creator><pubDate>Fri, 14 Jun 2024 14:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Thu, 13 Jun 2024 21:29:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/862">@SteveV</a> Hi.</p>
<p dir="auto">It seems that the API has changed...</p>
<p dir="auto">Try using esp32 2.x.x version, until i update the example. I think you should be able to uninstall 3.x.x version and revert back to 2.x.x.</p>
<p dir="auto">Alternatively, you could modify the "ledc" functions to use the new API.</p>
<p dir="auto">Best regards,<br />
Kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/860</link><guid isPermaLink="true">https://forum.gui-o.com/post/860</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Thu, 13 Jun 2024 21:29:09 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Thu, 13 Jun 2024 12:00:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a> G'day Klemen,<br />
I'll try to provide as much info as I can,</p>
<p dir="auto">My physical board is marked "ESP32_DEVKITC_V4"</p>
<p dir="auto">The ESP32 by Espressif Systems v3.0.1 has been installed.</p>
<p dir="auto">The "<a href="https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" rel="nofollow ugc">https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json</a>" had been set in preferences.</p>
<p dir="auto">Unable to specifically find board "ESP32-WROOM-32" (as shown in the video tutorial) - the one that seems to fit closest is uPesy ESP32 Wroom Devkit. (I select com6).</p>
<p dir="auto">Using this board, I can load TemperatureReader (Episode 1) from the tutorials, set up the network, MQTT in/out compile/run (without error) and run the GUIO on the tablet and everything works perfectly.</p>
<p dir="auto">As indicated in my last post, I sourced the BasicMQTT code by copying the code snippet as well as downloading from the link in the tutorials just in case there was a code discrepancy</p>
<p dir="auto">And yet I still get the error previously posted.</p>
<p dir="auto">Where are the ledc* functions declared? I can't find any reference to them!</p>
<p dir="auto">I'd appreciate any help as I'm keen to learn more about MQTT for a project I'm developing.<br />
Cheers</p>
]]></description><link>https://forum.gui-o.com/post/859</link><guid isPermaLink="true">https://forum.gui-o.com/post/859</guid><dc:creator><![CDATA[SteveV]]></dc:creator><pubDate>Thu, 13 Jun 2024 12:00:28 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to compile BasicMQTT - code error on Wed, 12 Jun 2024 12:50:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/862">@SteveV</a> Hi.</p>
<p dir="auto">Did you install the esp32 board support? Which version are you using?</p>
<p dir="auto">Please let me know, so I can help you further.</p>
<p dir="auto">Best regards,<br />
Kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/858</link><guid isPermaLink="true">https://forum.gui-o.com/post/858</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Wed, 12 Jun 2024 12:50:51 GMT</pubDate></item></channel></rss>