User Tools

Site Tools


arduino:esp32-api3-fr

This is an old revision of the document!


WIO ESP32 API 3.x

Remarques

Déplacement de l'API 2.0.17 vers 3.x.
Espressive a massivement brisé la compatibilité de 2.x à 3.x, ce qui est la principale raison de rester avec 2.0.17.

Les changements sont sauvegardés dans une branche séparée: https://gitlab.com/rocrail/wio/-/tree/ESP32_API3?ref_type=heads


Libraries

ESP32CAN

Replace the missing include file in CAN.c line 37

#include "esp_intr.h"

with

#include "rom/gpio.h"


Show stopper OTA/mDNS

The API 3.x is not consistent and cannot compile itself:

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

This blocks the WIO ESP32 migration from 2.x to 3.x.


arduino/esp32-api3-fr.1747828720.txt.gz · Last modified: 2025/05/21 13:58 by phil45