Can you help me with that, keep getting that error. I'm using an ESP32 with IOT Cloud, It happened randomly, I haven't changed any part of my code. Thank you so much:
The error
Summary
/usr/local/bin/arduino-cli compile --fqbn esp32:esp32:esp32wroverkit --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/028157337/build --build-path /tmp/arduino-build-CEF8BA9CF5A31B4BD1616A53F35D378D --library /mnt/create-efs/webide/b2/81/b281ba28fd6b5af9fafafe3bbf8f7b0b:caocap/libraries_v2/DHT sensor library --library /mnt/create-efs/webide/b2/81/b281ba28fd6b5af9fafafe3bbf8f7b0b:caocap/libraries_v2/Rtc by Makuna /tmp/028157337/Untitled_2_nov14a
Using library WiFiClientSecure at version 2.0.0 in folder: /home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFiClientSecure
Using library arduinomqttclient_0_1_6 at version 0.1.6 in folder: /home/builder/opt/libraries/arduinomqttclient_0_1_6
In file included from /home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFi/src/WiFi.h:29,
from /home/builder/opt/libraries/latest/arduino_connectionhandler_0_7_0/src/Arduino_ConnectionHandler.h:103,
from /home/builder/opt/libraries/latest/arduinoiotcloud_1_8_0/src/ArduinoIoTCloud.h:27,
from /tmp/028157337/Untitled_2_nov14a/thingProperties.h:3,
from /tmp/028157337/Untitled_2_nov14a/Untitled_2_nov14a.ino:23:
/home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/IPv6Address.h:28:1: error: expected unqualified-id before 'class'
class IPv6Address: public Printable
^~~~~
In file included from /home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFi/src/WiFi.h:32,
from /home/builder/opt/libraries/latest/arduino_connectionhandler_0_7_0/src/Arduino_ConnectionHandler.h:103,
from /home/builder/opt/libraries/latest/arduinoiotcloud_1_8_0/src/ArduinoIoTCloud.h:27,
from /tmp/028157337/Untitled_2_nov14a/thingProperties.h:3,
from /tmp/028157337/Untitled_2_nov14a/Untitled_2_nov14a.ino:23:
/home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFi/src/WiFiSTA.h:87:5: error: 'IPv6Address' does not name a type; did you mean 'IPAddress'?
IPv6Address localIPv6();
^~~~~~~~~~~
IPAddress
In file included from /home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFi/src/WiFi.h:33,
from /home/builder/opt/libraries/latest/arduino_connectionhandler_0_7_0/src/Arduino_ConnectionHandler.h:103,
from /home/builder/opt/libraries/latest/arduinoiotcloud_1_8_0/src/ArduinoIoTCloud.h:27,
from /tmp/028157337/Untitled_2_nov14a/thingProperties.h:3,
from /tmp/028157337/Untitled_2_nov14a/Untitled_2_nov14a.ino:23:
/home/builder/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFi/src/WiFiAP.h:53:5: error: 'IPv6Address' does not name a type; did you mean 'IPAddress'?
IPv6Address softAPIPv6();
^~~~~~~~~~~
IPAddress
Error during build: exit status 1
My code:
[details="Summary"]
*
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled 2"
https://create.arduino.cc/cloud/things/f18c7d52-08d5-4ff8-81d8-5f67c946715d
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
bool airPurifierStatus;
bool fan1Status;
bool flameStatus;
bool gasStatus;
bool led1Status;
Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
which are called when their values are changed from the Dashboard.
These functions are generated with the Thing and added at the end of this sketch.
*/
#include "thingProperties.h"
void setup() {
// Initialize serial and wait for port to open:
Serial.begin(9600);
// This delay gives the chance to wait for a Serial Monitor without blocking if none is found
delay(1500);
// Defined in thingProperties.h
initProperties();
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
#define smokePin 33
#define flamePin 26
#define lightPin 14
#define gasPin 13
pinMode(flamePin, INPUT);
pinMode(smokePin, INPUT);
pinMode(lightPin, INPUT);
pinMode(gasPin, INPUT);
}
void loop() {
ArduinoCloud.update();
int inGas = analogRead(gasPin);
int inSmoke = analogRead(smokePin);
bool inFlame = digitalRead(flamePin);
Serial.print("gas: ");
Serial.println(inGas);
Serial.print("smoke: ");
Serial.println(inSmoke);
Serial.print("flame: ");
Serial.println(inFlame);
flameStatus = inFlame;
}
/*
Since FlameStatus is READ_WRITE variable, onFlameStatusChange() is
executed every time a new value is received from IoT Cloud.
*/
void onFlameStatusChange() {
// Add your code here to act upon FlameStatus change
}
/*
Since GasStatus is READ_WRITE variable, onGasStatusChange() is
executed every time a new value is received from IoT Cloud.
*/
void onGasStatusChange() {
// Add your code here to act upon GasStatus change
}
/*
Since Led1Status is READ_WRITE variable, onLed1StatusChange() is
executed every time a new value is received from IoT Cloud.
*/
void onLed1StatusChange() {
// Add your code here to act upon Led1Status change
}
/*
Since Fan1Status is READ_WRITE variable, onFan1StatusChange() is
executed every time a new value is received from IoT Cloud.
*/
void onFan1StatusChange() {
// Add your code here to act upon Fan1Status change
}
/*
Since AirPurifierStatus is READ_WRITE variable, onAirPurifierStatusChange() is
executed every time a new value is received from IoT Cloud.
*/
void onAirPurifierStatusChange() {
// Add your code here to act upon AirPurifierStatus change
}
[/details]