Hier, 06:50 PM
Bonsoir,
J'ai aectuellement 3 routeurs qui fonctionnent en 8.03. arduino)
J'essaye de compiler la même version sur un nouvel esp 32et j' ai les erreurs suivantes (je suis en version 2.3.0
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:321:1: error: 'WiFiClient' does not name a type; did you mean 'Client'?
321 | WiFiClient MqttClient;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:322:25: error: 'MqttClient' was not declared in this scope; did you mean 'Client'?
322 | PubSubClient clientMQTT(MqttClient);
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino: In function 'void setup()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:85:21: error: invalid conversion from 'int' to 'const esp_task_wdt_config_t*' [-fpermissive]
85 | #define WDT_TIMEOUT 180
| ^~~
| |
| int
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:85:21: note: in definition of macro 'WDT_TIMEOUT'
85 | #define WDT_TIMEOUT 180
| ^~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:412:20: error: too many arguments to function 'esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t*)'
412 | esp_task_wdt_init(WDT_TIMEOUT, true); //enable panic so ESP32 restarts
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:65:
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32/include/esp_system/include/esp_task_wdt.h:47:11: note: declared here
47 | esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t *config);
| ^~~~~~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:467:3: error: 'WiFi' was not declared in this scope
467 | WiFi.hostname(hostname);
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:472:25: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
472 | if (WiFi.getMode() != WIFI_STA) {
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:535:29: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
535 | while (WiFi.status() != WL_CONNECTED && (millis() - startMillis < 15000)) { // Attente connexion au Wifi
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:542:24: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
542 | if (WiFi.status() == WL_CONNECTED) {
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:551:15: error: 'WIFI_AP_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
551 | WiFi.mode(WIFI_AP_STA);
| ^~~~~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:609:21: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
609 | timer = timerBegin(0, 80, true); //Clock Divider, 1 micro second Tick
| ~~~~~~~~~~^~~~~~~~~~~~~
In file included from C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal.h:84,
from C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/Arduino.h:36,
from C:\Users\jmcm\AppData\Local\Temp\arduino\sketches\CE17142BEEFC62DA9BF4E39C6E3B59C0\sketch\Solar_Router_V8_09_RMS.ino.cpp:1:
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t *timerBegin(uint32_t frequency);
| ^~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:610:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t*, void (*)())'
610 | timerAttachInterrupt(timer, &onTimer, true);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:611:3: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
611 | timerAlarmWrite(timer, 100, true); //Interrupt every 100 Ticks or microsecond
| ^~~~~~~~~~~~~~~
| timerWrite
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:612:3: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
612 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:615:25: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
615 | timer10ms = timerBegin(1, 80, true); //Clock Divider, 1 micro second Tick
| ~~~~~~~~~~^~~~~~~~~~~~~
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t *timerBegin(uint32_t frequency);
| ^~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:616:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t*, void (*)())'
616 | timerAttachInterrupt(timer10ms, &onTimer10ms, true);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino: In function 'void loop()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:780:9: error: 'WiFi' was not declared in this scope
780 | if (WiFi.waitForConnectResult(10000) != WL_CONNECTED) {
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:780:45: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
780 | if (WiFi.waitForConnectResult(10000) != WL_CONNECTED) {
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:790:9: error: 'WiFi' was not declared in this scope
790 | if (WiFi.getMode() != WIFI_STA) {
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:790:27: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
790 | if (WiFi.getMode() != WIFI_STA) {
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:817:39: error: 'WiFi' was not declared in this scope
817 | if ((tps - startMillis) > 180000 && WiFi.getMode() != WIFI_STA) { //Connecté en Access Point depuis 3mn. Pas normal
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:817:57: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
817 | if ((tps - startMillis) > 180000 && WiFi.getMode() != WIFI_STA) { //Connecté en Access Point depuis 3mn. Pas normal
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino: In function 'void Gestion_LEDs()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:955:7: error: 'WiFi' was not declared in this scope
955 | if (WiFi.status() != WL_CONNECTED) { // Attente connexion au Wifi
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:955:24: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
955 | if (WiFi.status() != WL_CONNECTED) { // Attente connexion au Wifi
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:956:27: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
956 | if (WiFi.getMode() == WIFI_STA) { // en Station mode
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\MQTT.ino: In function 'void envoiAuMQTT()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\MQTT.ino:42:7: error: 'WiFi' was not declared in this scope
42 | WiFi.macAddress(mac);
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleRoot()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:37:7: error: 'WiFi' was not declared in this scope
37 | if (WiFi.getMode() != WIFI_STA) { // en AP et STA mode
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:37:25: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
37 | if (WiFi.getMode() != WIFI_STA) { // en AP et STA mode
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAjaxRMS()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:59:5: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
59 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:67:10: error: 'clientESP_RMS' was not declared in this scope
67 | if (!clientESP_RMS.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:72:5: error: 'clientESP_RMS' was not declared in this scope
72 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAjaxESP32()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:190:25: error: 'WiFi' was not declared in this scope
190 | S += String(H) + RS + WiFi.RSSI() + RS + WiFi.BSSIDstr() + RS + WiFi.macAddress() + RS + ssid + RS + WiFi.localIP().toString() + RS + WiFi.gatewayIP().toString() + RS + WiFi.subnetMask().toString();
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAP_ScanWifi()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:397:11: error: 'WiFi' was not declared in this scope
397 | int n = WiFi.scanNetworks();
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAP_SetWifi()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:432:3: error: 'WiFi' was not declared in this scope
432 | WiFi.begin(ssid.c_str(), password.c_str());
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:434:27: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
434 | while (WiFi.status() != WL_CONNECTED && (millis() - newstartMillis < 15000)) { // Attente connexion au Wifi
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:441:24: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
441 | if (WiFi.status() == WL_CONNECTED) {
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino: In function 'void LectureEnphase()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino:147:5: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
147 | WiFiClient clientFirmV5;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino:148:10: error: 'clientFirmV5' was not declared in this scope
148 | if (!clientFirmV5.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino:155:5: error: 'clientFirmV5' was not declared in this scope
155 | clientFirmV5.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");;
| ^~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino: In function 'void CallESP32_Externe()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino:12:3: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
12 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino:20:8: error: 'clientESP_RMS' was not declared in this scope
20 | if (!clientESP_RMS.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino:27:3: error: 'clientESP_RMS' was not declared in this scope
27 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino: In function 'void LectureShellyEm()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino:13:3: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
13 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino:21:8: error: 'clientESP_RMS' was not declared in this scope
21 | if (!clientESP_RMS.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino:36:3: error: 'clientESP_RMS' was not declared in this scope
36 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino: In function 'void LectureSmartG()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino:12:3: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
12 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino:20:8: error: 'clientESP_RMS' was not declared in this scope
20 | if (!clientESP_RMS.connect(host.c_str(), 82)) { // PORT 82 pour Smlart Gateways
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino:27:3: error: 'clientESP_RMS' was not declared in this scope
27 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
exit status 1
Compilation error: 'WiFiClient' does not name a type; did you mean 'Client'?
S'il vous plaît pouvez-vous m'aider
J'ai aectuellement 3 routeurs qui fonctionnent en 8.03. arduino)
J'essaye de compiler la même version sur un nouvel esp 32et j' ai les erreurs suivantes (je suis en version 2.3.0
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:321:1: error: 'WiFiClient' does not name a type; did you mean 'Client'?
321 | WiFiClient MqttClient;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:322:25: error: 'MqttClient' was not declared in this scope; did you mean 'Client'?
322 | PubSubClient clientMQTT(MqttClient);
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino: In function 'void setup()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:85:21: error: invalid conversion from 'int' to 'const esp_task_wdt_config_t*' [-fpermissive]
85 | #define WDT_TIMEOUT 180
| ^~~
| |
| int
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:85:21: note: in definition of macro 'WDT_TIMEOUT'
85 | #define WDT_TIMEOUT 180
| ^~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:412:20: error: too many arguments to function 'esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t*)'
412 | esp_task_wdt_init(WDT_TIMEOUT, true); //enable panic so ESP32 restarts
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:65:
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32/include/esp_system/include/esp_task_wdt.h:47:11: note: declared here
47 | esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t *config);
| ^~~~~~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:467:3: error: 'WiFi' was not declared in this scope
467 | WiFi.hostname(hostname);
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:472:25: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
472 | if (WiFi.getMode() != WIFI_STA) {
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:535:29: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
535 | while (WiFi.status() != WL_CONNECTED && (millis() - startMillis < 15000)) { // Attente connexion au Wifi
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:542:24: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
542 | if (WiFi.status() == WL_CONNECTED) {
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:551:15: error: 'WIFI_AP_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
551 | WiFi.mode(WIFI_AP_STA);
| ^~~~~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:609:21: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
609 | timer = timerBegin(0, 80, true); //Clock Divider, 1 micro second Tick
| ~~~~~~~~~~^~~~~~~~~~~~~
In file included from C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal.h:84,
from C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/Arduino.h:36,
from C:\Users\jmcm\AppData\Local\Temp\arduino\sketches\CE17142BEEFC62DA9BF4E39C6E3B59C0\sketch\Solar_Router_V8_09_RMS.ino.cpp:1:
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t *timerBegin(uint32_t frequency);
| ^~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:610:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t*, void (*)())'
610 | timerAttachInterrupt(timer, &onTimer, true);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:611:3: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
611 | timerAlarmWrite(timer, 100, true); //Interrupt every 100 Ticks or microsecond
| ^~~~~~~~~~~~~~~
| timerWrite
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:612:3: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
612 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:615:25: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
615 | timer10ms = timerBegin(1, 80, true); //Clock Divider, 1 micro second Tick
| ~~~~~~~~~~^~~~~~~~~~~~~
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t *timerBegin(uint32_t frequency);
| ^~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:616:23: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t*, void (*)())'
616 | timerAttachInterrupt(timer10ms, &onTimer10ms, true);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\jmcm\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino: In function 'void loop()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:780:9: error: 'WiFi' was not declared in this scope
780 | if (WiFi.waitForConnectResult(10000) != WL_CONNECTED) {
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:780:45: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
780 | if (WiFi.waitForConnectResult(10000) != WL_CONNECTED) {
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:790:9: error: 'WiFi' was not declared in this scope
790 | if (WiFi.getMode() != WIFI_STA) {
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:790:27: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
790 | if (WiFi.getMode() != WIFI_STA) {
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:817:39: error: 'WiFi' was not declared in this scope
817 | if ((tps - startMillis) > 180000 && WiFi.getMode() != WIFI_STA) { //Connecté en Access Point depuis 3mn. Pas normal
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:817:57: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
817 | if ((tps - startMillis) > 180000 && WiFi.getMode() != WIFI_STA) { //Connecté en Access Point depuis 3mn. Pas normal
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino: In function 'void Gestion_LEDs()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:955:7: error: 'WiFi' was not declared in this scope
955 | if (WiFi.status() != WL_CONNECTED) { // Attente connexion au Wifi
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:955:24: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
955 | if (WiFi.status() != WL_CONNECTED) { // Attente connexion au Wifi
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Solar_Router_V8_09_RMS.ino:956:27: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
956 | if (WiFi.getMode() == WIFI_STA) { // en Station mode
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\MQTT.ino: In function 'void envoiAuMQTT()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\MQTT.ino:42:7: error: 'WiFi' was not declared in this scope
42 | WiFi.macAddress(mac);
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleRoot()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:37:7: error: 'WiFi' was not declared in this scope
37 | if (WiFi.getMode() != WIFI_STA) { // en AP et STA mode
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:37:25: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
37 | if (WiFi.getMode() != WIFI_STA) { // en AP et STA mode
| ^~~~~~~~
| WIFI_IF_STA
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAjaxRMS()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:59:5: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
59 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:67:10: error: 'clientESP_RMS' was not declared in this scope
67 | if (!clientESP_RMS.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:72:5: error: 'clientESP_RMS' was not declared in this scope
72 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAjaxESP32()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:190:25: error: 'WiFi' was not declared in this scope
190 | S += String(H) + RS + WiFi.RSSI() + RS + WiFi.BSSIDstr() + RS + WiFi.macAddress() + RS + ssid + RS + WiFi.localIP().toString() + RS + WiFi.gatewayIP().toString() + RS + WiFi.subnetMask().toString();
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAP_ScanWifi()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:397:11: error: 'WiFi' was not declared in this scope
397 | int n = WiFi.scanNetworks();
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino: In function 'void handleAP_SetWifi()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:432:3: error: 'WiFi' was not declared in this scope
432 | WiFi.begin(ssid.c_str(), password.c_str());
| ^~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:434:27: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
434 | while (WiFi.status() != WL_CONNECTED && (millis() - newstartMillis < 15000)) { // Attente connexion au Wifi
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Server.ino:441:24: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'MQTT_CONNECTED'?
441 | if (WiFi.status() == WL_CONNECTED) {
| ^~~~~~~~~~~~
| MQTT_CONNECTED
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino: In function 'void LectureEnphase()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino:147:5: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
147 | WiFiClient clientFirmV5;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino:148:10: error: 'clientFirmV5' was not declared in this scope
148 | if (!clientFirmV5.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_EnphaseEnvoy.ino:155:5: error: 'clientFirmV5' was not declared in this scope
155 | clientFirmV5.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");;
| ^~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino: In function 'void CallESP32_Externe()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino:12:3: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
12 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino:20:8: error: 'clientESP_RMS' was not declared in this scope
20 | if (!clientESP_RMS.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_Externe.ino:27:3: error: 'clientESP_RMS' was not declared in this scope
27 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino: In function 'void LectureShellyEm()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino:13:3: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
13 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino:21:8: error: 'clientESP_RMS' was not declared in this scope
21 | if (!clientESP_RMS.connect(host.c_str(), 80)) {
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_ShellyEm.ino:36:3: error: 'clientESP_RMS' was not declared in this scope
36 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino: In function 'void LectureSmartG()':
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino:12:3: error: 'WiFiClient' was not declared in this scope; did you mean 'Client'?
12 | WiFiClient clientESP_RMS;
| ^~~~~~~~~~
| Client
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino:20:8: error: 'clientESP_RMS' was not declared in this scope
20 | if (!clientESP_RMS.connect(host.c_str(), 82)) { // PORT 82 pour Smlart Gateways
| ^~~~~~~~~~~~~
D:\Utilisateurs\Cath & Jean-Mi\Documents\Arduino\prog\F1ATB actue en serv\Solar_Router_V8_09_RMS\Source_SmartG.ino:27:3: error: 'clientESP_RMS' was not declared in this scope
27 | clientESP_RMS.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n");
| ^~~~~~~~~~~~~
exit status 1
Compilation error: 'WiFiClient' does not name a type; did you mean 'Client'?
S'il vous plaît pouvez-vous m'aider