<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									ESP32 BLE examples for client and server do not compile sucessfully. - ESP32 &amp; ESP8266				            </title>
            <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 06 Jun 2026 07:41:40 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48306</link>
                        <pubDate>Sun, 07 Jul 2024 00:24:00 +0000</pubDate>
                        <description><![CDATA[@noweare There is a very simple fix as I already posted earlier. Here is the ESP official guide, BUT that is NOT what I did to make the code work.
Also the Random Nerds have the same inform...]]></description>
                        <content:encoded><![CDATA[<p>@noweare There is a very simple fix as I already posted earlier. Here is the ESP official guide, BUT that is NOT what I did to make the code work.</p>
<p><a href="https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html" target="_blank" rel="noopener">https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html</a></p>
<p>Also the Random Nerds have the same information at </p>
<p><a href="https://randomnerdtutorials.com/esp32-migrating-version-2-to-3-arduino/" target="_blank" rel="noopener">https://randomnerdtutorials.com/esp32-migrating-version-2-to-3-arduino/</a></p>
<p>BUT again, I got the sketches that the OP mentioned to compile without going through the migration.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48306</guid>
                    </item>
				                    <item>
                        <title>RE: ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48305</link>
                        <pubDate>Sat, 06 Jul 2024 23:29:43 +0000</pubDate>
                        <description><![CDATA[@butcha 
The short story.
I have had problems with some of their examples also so your not alone. The arduino framework for the esp32 is an open source project maintained by Espressif.  It...]]></description>
                        <content:encoded><![CDATA[<p>@butcha </p>
<p>The short story.</p>
<p>I have had problems with some of their examples also so your not alone. The arduino framework for the esp32 is an open source project maintained by Espressif.  It is NOT their flagship product, the esp-idf is. When a major release occurs, version 2 to version 3, there are going to be breaking changes. With limited man power I am sure some things are going to slip through the cracks. I think you may have better luck reverting back to Version 2 of the framework and then running the examples with that version, from that version.</p>
<p>Also, any 3rd party libraries (non Espressif and not included in the framework, like really external) are going to have to catch up if any breaking changes touch their libraries.</p>
<p>For BLE I found these changes were made going from version 2 to 3:</p>
<h3>----------------</h3>
<h3>BLE<a class="headerlink" title="Permalink to this headline" href="https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html#ble"></a></h3>
<div id="changes-in-apis" class="section">
<h4>Changes in APIs<a class="headerlink" title="Permalink to this headline" href="https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html#changes-in-apis"></a></h4>
<ul class="simple">
<li>
<p>Changed APIs return and parameter type from<span> </span><code class="docutils literal notranslate"><span class="pre">std::string</span></code><span> </span>to Arduino style<span> </span><code class="docutils literal notranslate"><span class="pre">String</span></code>.</p>
</li>
<li>
<p>Changed UUID data type from<span> </span><code class="docutils literal notranslate"><span class="pre">uint16_t</span></code><span> </span>to<span> </span><code class="docutils literal notranslate"><span class="pre">BLEUUID</span></code><span> </span>class.</p>
</li>
<li>
<p><code class="docutils literal notranslate"><span class="pre">BLEScan::start</span></code><span> </span>and<span> </span><code class="docutils literal notranslate"><span class="pre">BLEScan::getResults</span></code><span> </span>methods return type changed from<span> </span><code class="docutils literal notranslate"><span class="pre">BLEScanResults</span></code><span> </span>to<span> </span><code class="docutils literal notranslate"><span class="pre">BLEScanResults*</span></code>.</p>
</li>
</ul>
</div>
<p>----------------------</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>noweare</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48305</guid>
                    </item>
				                    <item>
                        <title>RE: ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48295</link>
                        <pubDate>Fri, 05 Jul 2024 12:47:31 +0000</pubDate>
                        <description><![CDATA[@butcha This

I expect 

says it all. I had a few great teachers, but unfortunately more bad teachers. I have been waiting all my life to get some payback. YOU ARE IT! My friend Harrison...]]></description>
                        <content:encoded><![CDATA[<p>@butcha This</p>
<blockquote>
<p><span>I expect </span></p>
</blockquote>
<p>says it all. I had a few great teachers, but unfortunately more bad teachers. I have been waiting all my life to get some payback. YOU ARE IT! My friend Harrison punched out the teacher that publicly insulted him, he was not reprimanded, the teacher was. That was my first exposure to justice.</p>
<p>I am 82yo, diagnosed Autistic Spectrum Disorder, ADD and later Asperger's syndrome (my '<strong>thing</strong>' is finding other peoples bugs and making code run fast. I held the world record for transaction speed on the global financial markets at one time.</p>
<p>I discovered computers in 1959. I retired from my Computer consulting company in 2004. Besides myself, I had two employees who were paid $100k+ a year. This was in Canada and that was good money then. </p>
<p>Now that you have a better idea who and what I am, let's move on.</p>
<p>Below is a screen grab showing the two sketches you are unable to compile clean. I was able to do so. My 'secret' is I can do research which is mostly reading. There is a bug, and a fix is documented. I will tell you it is a clash between Espressif and Arduino. I suspect the reason you did not get the answer may have something to do with the way you communicate. Having worked support for many years, we often ran into people like you. Those are the people we told to format their hard drive and start over.</p>
<p>One last thing, since you mentioned students, that means you are asking me to do your job. THAT WILL NOT HAPPEN!</p>
<p>Here is a screen grab of the two sketches compiling clean for a ESP32C3 dev board.</p>
<p>The answer is out there.</p>
9233
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48295</guid>
                    </item>
				                    <item>
                        <title>RE: ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48293</link>
                        <pubDate>Thu, 04 Jul 2024 22:07:33 +0000</pubDate>
                        <description><![CDATA[@zander 
Thanks for the response, Ron. I will try to answer as follows:
You said: &quot;Both of those are the wrong place to get support&quot;I say: If I cannot get help from the software authors, t...]]></description>
                        <content:encoded><![CDATA[<p>@zander </p>
<p>Thanks for the response, Ron. I will try to answer as follows:</p>
<p><br />You said: "Both of those are the wrong place to get support"<br />I say: If I cannot get help from the software authors, then where else should I seek help?</p>
<p><br />You: "you have no proof that the espressif products have a bug, or that the IDE is at fault"<br />Me: My "proof" is that the examples do not compile. I do not exactly know who is at fault.</p>
<p><br />You: "If you created the sketches, then it's your problem and we will gladly help. If you copied them from a reputable source, then the issue is in your environment."<br />Me:<span style="color: #ff0000"> Key point</span> is that these are examples by espressif. I did <span style="color: #ff0000">NOT</span> create or copy these sketches.</p>
<p><br />You: "The first thing you need to provide is a LINK to the code..."<br />Me: The code is as stated in my original post. <br />custom libraries &gt; ESP32 BLE Arduino &gt; BLE client loads sketch <span style="color: #ff0000">client</span>.ino <br />custom libraries &gt; ESP32 BLE Arduino &gt; BLE server loads sketch <span style="color: #ff0000">server</span>.ino</p>
<p><br />You: "Drop back to esp32 ver 2 boards..."<br />Me: As stated in my original post, I tried boards manager esp32 by Espressif ver. 3.0.2 (and lower versions). No joy</p>
<p><br />You: "(BTW, what OS)" sic.<br />Me: As stated in my original post, windows 11...</p>
<p><br />Some history: I tried to explain to Arduino support that the examples should work, period.<br />If examples do not work, then they should NOT be listed or a warning should be given that they do not work. <br />When I teach code to STEM kids, I expect examples to work. period.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>ButchA</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48293</guid>
                    </item>
				                    <item>
                        <title>RE: ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48292</link>
                        <pubDate>Thu, 04 Jul 2024 21:11:36 +0000</pubDate>
                        <description><![CDATA[@butcha I took a quick look, and the key compile errors (at the beginning) are missing types! This is serious. Unless you have human lives or a lot of money at risk if this project can&#039;t be ...]]></description>
                        <content:encoded><![CDATA[<p>@butcha I took a quick look, and the key compile errors (at the beginning) are missing types! This is serious. Unless you have human lives or a lot of money at risk if this project can't be done I suggest you make the following changes.</p>
<p>Drop back to esp32 ver 2 boards, too many unknowns with the new 3's still.</p>
<p>Start with Bills recent BT video/article</p>
<p>EDIT</p>
<p>The underlying reason is that ESP released a new major release of the API. See this <a href="https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html" target="_blank" rel="noopener">LINK </a> You could drop back to a 2.x release, but you are now either locked into the past for everything, or you have to remenber to constanlty upgrade, downgrade. Not worth it, the best strategy is patience.</p>
<p>Have a look at what Bill posted recently <a href="https://youtu.be/0Q_4q1zU6Zc?si=WHnhZurqYhmLSu1w" target="_blank" rel="noopener">VIDEO </a> and <a href="https://dronebotworkshop.com/esp32-bluetooth/" target="_blank" rel="noopener">ARTICLE</a></p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48292</guid>
                    </item>
				                    <item>
                        <title>RE: ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48291</link>
                        <pubDate>Thu, 04 Jul 2024 20:50:11 +0000</pubDate>
                        <description><![CDATA[@butcha Both of those are the wrong place to get support, you have no proof that the espressif products have a bug, or that the IDE is at fault. If you created the sketches, then it&#039;s your p...]]></description>
                        <content:encoded><![CDATA[<p>@<span>butcha Both of those are the wrong place to get support, you have no proof that the espressif products have a bug, or that the IDE is at fault. If you created the sketches, then it's your problem and we will gladly help. If you copied them from a reputable source, then the issue is in your environment. We have a plan for that but it is extreme (format?)</span></p>
<p>The first thing you need to provide is a LINK to the code and any videos but much better the accompanying articles. then zip up the entire compile output so I can see what is happening.</p>
<p>At this stage, my hunch is you have not installed some libraries or the IDE correctly (BTW, what OS)</p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48291</guid>
                    </item>
				                    <item>
                        <title>ESP32 BLE examples for client and server do not compile sucessfully.</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48284</link>
                        <pubDate>Thu, 04 Jul 2024 13:42:01 +0000</pubDate>
                        <description><![CDATA[Arduino support says this is not their problem.  Espressif does not respond.  I am hoping someone can help with this...
Testing done with Arduino IDE 2.3.2, boards manager esp32 by Espressi...]]></description>
                        <content:encoded><![CDATA[<p>Arduino support says this is not their problem.  Espressif does not respond.  I am hoping someone can help with this...</p>
<p>Testing done with Arduino IDE 2.3.2, boards manager esp32 by Espressif ver. 3.0.2 (and lower versions), ESP32C3 (&amp; other modules), windows 11...</p>
<p> </p>
<p>Selecting file &gt; examples&gt;examples &gt; custom libraries &gt; ESP32 BLE Arduino &gt; BLE <span style="color: #ff0000"><strong><u>client</u></strong></span> loads sketch client.ino </p>
<p>Compiling gets: Many errors ending in Compilation error: 'BLEUUID' does not name a type</p>
<p> </p>
<p>Selecting file &gt; examples&gt;examples &gt; custom libraries &gt; ESP32 BLE Arduino &gt; BLE <span style="color: #ff0000"><strong><u>server</u></strong></span> loads sketch server.ino </p>
<p>Compiling gets: Many errors ending in Compilation error: 'init' is not a member of 'BLEDevice'</p>
<p> </p>
<p>Any and all help appreciated - thanks</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>ButchA</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/esp32-ble-examples-for-client-and-server-do-not-compile-sucessfully/#post-48284</guid>
                    </item>
							        </channel>
        </rss>
		