User Tools

Site Tools


arduino:esp32-api3-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arduino:esp32-api3-en [2025/05/21 07:32] – created rjversluisarduino:esp32-api3-en [2025/05/21 09:43] (current) rjversluis
Line 1: Line 1:
-======WIO ESP32 API 3======+======WIO ESP32 API 3.x====== 
 +[[:wio:overview-en|{{ :wio:wiologo.png}}]] 
 +[[:english|Content]] -> [[:arduino:wio-overview-en|WIO Overview]] 
 +  * [[:arduino:wio-overview-en|WIO Overview]] | [[:arduino:wio-setup-en|WIO Setup]] | [[:arduino:wioctrl-en|WIO Control]] | [[:arduino:amp-en|User Bitmaps]] | [[:arduino:wio-en|WIO Firmware]] | [[:wio:wio-ledscript-en|LEDScript]] | [[:wio:wio-ioscript-en|IOScript]] 
 +  * [[:arduino:wio-rascii-en|WIO RASCII]] | [[:arduino:wio-canprot-en|WIO CAN Protocol]] 
 +  * [[https://i2cdevices.org/addresses|I2C Device Addresses]] 
 +  * **[[:arduino:esp32-api3-en|ESP32 API 3.x]]**
  
 + \\
 +|  Due to OTA/mDNS compile errors WIO ESP32 cannot use API 3.x  |
 +
 + \\
 +=====Remarks=====
 +Moving from API 2.0.17 to 3.x.\\
 +Espressive massively broke the compatibility from 2.x to 3.x which is the main reason to stick with 2.0.17\\
 +
 +Changes are saved in a separate branch: https://gitlab.com/rocrail/wio/-/tree/ESP32_API3?ref_type=heads \\
 +
 + \\
  
 =====Libraries===== =====Libraries=====
 ====ESP32CAN==== ====ESP32CAN====
-Replace the missing include file+  * https://github.com/miwagner/ESP32-Arduino-CAN 
 +Replace the missing include file in CAN.c line 37
 <code cpp> <code cpp>
 #include "esp_intr.h" #include "esp_intr.h"
Line 13: Line 31:
 </code> </code>
  
 + \\
 +=====Show stopper OTA/mDNS=====
 +The API 3.x is not consistent and cannot compile itself:
 +<code>
 +In file included from ~/Library/Arduino15/packages/esp32/hardware/esp32/3.2.0/libraries/ArduinoOTA/src/ArduinoOTA.cpp:21:
 +~/Library/Arduino15/packages/esp32/hardware/esp32/3.2.0/libraries/ESPmDNS/src/ESPmDNS.h:125:3: error: 'mdns_result_t' does not name a type
 +  125 |   mdns_result_t *results;
 +      |   ^~~~~~~~~~~~~
 +~/Library/Arduino15/packages/esp32/hardware/esp32/3.2.0/libraries/ESPmDNS/src/ESPmDNS.h:126:3: error: 'mdns_result_t' does not name a type
 +  126 |   mdns_result_t *_getResult(int idx);
 +      |   ^~~~~~~~~~~~~
 +~/Library/Arduino15/packages/esp32/hardware/esp32/3.2.0/libraries/ESPmDNS/src/ESPmDNS.h:127:3: error: 'mdns_txt_item_t' does not name a type
 +  127 |   mdns_txt_item_t *_getResultTxt(int idx, int txtIdx);
 +      |   ^~~~~~~~~~~~~~~
 +exit status 1
 +</code>
 +This blocks the WIO ESP32 migration from 2.x to 3.x.\\
 +
 +
 + \\
 +=====Links=====
 +  * https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html
  
arduino/esp32-api3-en.1747805548.txt.gz · Last modified: 2025/05/21 07:32 by rjversluis