Arduino IOT Cloud project in PlatformIO (ESP32)

I really don't enjoy using the web editor and I would like to use Platformio. I made a new project and copied the the contents of the sketch (from the arduino web editor) into main.cpp and from thigProperties.h files to a new file called thingProperties.h and replaced the credentials.

Then I added the ArduinoIoTCloud library to the project.
While compiling I get a ton of errors.

Then I tried doing the same thing in the Arduino IDE 1.18.13 and it works as it should. The code compiles and uploads to the ESP32 and the board connects to the cloud and it works the same way as it does with the web editor. However I would really prefer using platformio.

I have also tried deleting everything from the .pio/libdebs folder and copying the ones downloaded by the arduino IDE with the same outcome.

Here the terminal while buliding:

Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.2.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 3.10006.210326 (1.0.6) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 40 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoIoTCloud> 1.3.1
|   |-- <Arduino_DebugUtils> 1.1.0
|   |-- <Arduino_ConnectionHandler> 0.6.5
|   |   |-- <WiFiNINA> 1.8.13
|   |   |   |-- <SPI> 1.0
|   |   |-- <Arduino_DebugUtils> 1.1.0
|   |-- <WiFiNINA> 1.8.13
|   |   |-- <SPI> 1.0
|   |-- <WiFiClientSecure> 1.0
|   |   |-- <WiFiNINA> 1.8.13
|   |   |   |-- <SPI> 1.0
|   |-- <ArduinoMqttClient> 0.1.5
|-- <Arduino_ConnectionHandler> 0.6.5
|   |-- <WiFiNINA> 1.8.13
|   |   |-- <SPI> 1.0
|   |-- <Arduino_DebugUtils> 1.1.0
Building in release mode
Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib9de\libArduino_DebugUtils.a
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFi.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiClient.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiServer.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiStorage.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiUdp.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\utility\spi_drv.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\utility\wifi_drv.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_ConnectionHandler.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_GSMConnectionHandler.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_NBConnectionHandler.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_WiFiConnectionHandler.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libf81\WiFiClientSecure\WiFiClientSecure.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libf81\WiFiClientSecure\ssl_client.cpp.o
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src/Arduino_ConnectionHandler.h:120,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:27,
                 from src\thingProperties.h:3,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/PropertyContainer.h:27:0,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/CBORDecoder.h:35,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:35,
                 from src\thingProperties.h:3,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/types/automation/CloudTelevision.h: In member function 'virtual void CloudTelevision::setAttributesFromCloud()':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/types/automation/CloudTelevision.h:229:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       setAttribute((int&)_cloud_value.pbc);
                                       ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/Property.h:52:42: note: in definition of macro 'setAttribute'
 #define setAttribute(x) setAttributeReal(x, getAttributeName(#x, '.'))
                                          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/types/automation/CloudTelevision.h:230:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       setAttribute((int&)_cloud_value.inp);
                                       ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/Property.h:52:42: note: in definition of macro 'setAttribute'
 #define setAttribute(x) setAttributeReal(x, getAttributeName(#x, '.'))
                                          ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
src\thingProperties.h: In function 'void initProperties()':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:104:64: warning: 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
 #define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
                                                                ^
src\thingProperties.h:33:16: note: in expansion of macro 'addProperty'
   ArduinoCloud.addProperty(sensor5, READWRITE, 1 * SECONDS, onSensor5Change);
                ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:113:10: note: declared here
     void addPropertyReal(int& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:104:64: warning: 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
 #define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
                                                                ^
src\thingProperties.h:34:16: note: in expansion of macro 'addProperty'
   ArduinoCloud.addProperty(sensor1, READWRITE, 1 * SECONDS, onSensor1Change);
                ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:113:10: note: declared here
     void addPropertyReal(int& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:104:64: warning: 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
 #define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
                                                                ^
src\thingProperties.h:35:16: note: in expansion of macro 'addProperty'
   ArduinoCloud.addProperty(sensor2, READWRITE, 1 * SECONDS, onSensor2Change);
                ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:113:10: note: declared here
     void addPropertyReal(int& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:104:64: warning: 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
 #define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
                                                                ^
src\thingProperties.h:36:16: note: in expansion of macro 'addProperty'
   ArduinoCloud.addProperty(sensor3, READWRITE, 1 * SECONDS, onSensor3Change);
                ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:113:10: note: declared here
     void addPropertyReal(int& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:104:64: warning: 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
 #define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
                                                                ^
src\thingProperties.h:37:16: note: in expansion of macro 'addProperty'
   ArduinoCloud.addProperty(sensor4, READWRITE, ON_CHANGE, onSensor4Change);
                ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:113:10: note: declared here
     void addPropertyReal(int& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
In file included from src\thingProperties.h:3:0,
                 from src\main.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:104:64: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
 #define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
                                                                ^
src\thingProperties.h:38:16: note: in expansion of macro 'addProperty'
   ArduinoCloud.addProperty(activeTime, READWRITE, ON_CHANGE, onActiveTimeChange, 1);
                ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:110:10: note: declared here
     void addPropertyReal(Property& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFi.cpp:21:0:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
Compiling .pio\build\esp32doit-devkit-v1\libedc\ArduinoMqttClient\MqttClient.cpp.o
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFiClient.cpp:30:0:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFiServer.cpp:28:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFiStorage.cpp:20:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\WiFiUdp.cpp:29:0:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\wifi_drv.cpp:27:0:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\wifi_drv.cpp:1063:1: error: 'PinStatus' does not name a type
 PinStatus WiFiDrv::digitalRead(uint8_t pin)
 ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp:25:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp: In static member function 'static void SpiDrv::begin()':
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp:94:24: error: 'PINS_COUNT' was not declared in this scope
       if (SLAVERESET > PINS_COUNT) {
                        ^
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp:103:15: error: 'NINA_GPIO0' was not declared in this scope
       pinMode(NINA_GPIO0, OUTPUT);
               ^
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp: In static member function 'static int SpiDrv::available()':
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp:66:25: error: 'NINA_GPIO0' was not declared in this scope
 #define NINA_GPIOIRQ    NINA_GPIO0
                         ^
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src\utility\spi_drv.cpp:597:25: note: in expansion of macro 'NINA_GPIOIRQ'
     return (digitalRead(NINA_GPIOIRQ) != LOW);
                         ^
Compiling .pio\build\esp32doit-devkit-v1\lib8b1\ArduinoIoTCloud\ArduinoIoTCloud.cpp.o
*** [.pio\build\esp32doit-devkit-v1\src\main.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFi.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiClient.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiServer.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiStorage.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\WiFiUdp.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\utility\spi_drv.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib204\WiFiNINA\utility\wifi_drv.cpp.o] Error 1
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_ConnectionHandler.h:120,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_ConnectionHandler.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
*** [.pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_ConnectionHandler.cpp.o] Error 1
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_ConnectionHandler.h:120,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_GSMConnectionHandler.h:25,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_GSMConnectionHandler.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_ConnectionHandler.h:120,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_NBConnectionHandler.h:25,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_NBConnectionHandler.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
*** [.pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_GSMConnectionHandler.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_NBConnectionHandler.cpp.o] Error 1
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_ConnectionHandler.h:120,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_WiFiConnectionHandler.h:25,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src\Arduino_WiFiConnectionHandler.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
*** [.pio\build\esp32doit-devkit-v1\lib067\Arduino_ConnectionHandler\Arduino_WiFiConnectionHandler.cpp.o] Error 1
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.h:25,
                 from C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:21:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In constructor 'WiFiClientSecure::WiFiClientSecure()':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:33:5: error: '_connected' was not declared in this scope
     _connected = false;
     ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In constructor 'WiFiClientSecure::WiFiClientSecure(int)':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:51:5: error: '_connected' was not declared in this scope
     _connected = false;
     ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'WiFiClientSecure& WiFiClientSecure::operator=(const WiFiClientSecure&)':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:81:5: error: '_connected' was not declared in this scope
     _connected = other._connected;
     ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:81:24: error: 'const class WiFiClientSecure' has no member named '_connected'
     _connected = other._connected;
                        ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'virtual void WiFiClientSecure::stop()':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:90:9: error: '_connected' was not declared in this scope
         _connected = false;
         ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'int WiFiClientSecure::connect(const char*, uint16_t, const char*, const char*, const char*)':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:137:5: error: '_connected' was not declared in this scope
     _connected = true;
     ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'int WiFiClientSecure::connect(const char*, uint16_t, const char*, const char*)':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:157:5: error: '_connected' was not declared in this scope
     _connected = true;
     ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'virtual size_t WiFiClientSecure::write(const uint8_t*, size_t)':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:186:10: error: '_connected' was not declared in this scope
     if (!_connected) {
          ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'virtual int WiFiClientSecure::available()':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:230:10: error: '_connected' was not declared in this scope
     if (!_connected) {
          ^
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp: In member function 'virtual uint8_t WiFiClientSecure::connected()':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp:246:12: error: '_connected' was not declared in this scope
     return _connected;
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\ssl_client.cpp:20:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
*** [.pio\build\esp32doit-devkit-v1\libf81\WiFiClientSecure\WiFiClientSecure.cpp.o] Error 1
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\ssl_client.cpp: In function 'int start_ssl_client(sslclient_context*, const char*, uint32_t, int, const char*, const char*, const char*, const char*, const char*, bool)':
C:\Users\gyano\.platformio\packages\framework-arduinoespressif32\libraries\WiFiClientSecure\src\ssl_client.cpp:75:9: error: 'WiFiGenericClass' has not been declared
     if(!WiFiGenericClass::hostByName(host, srv)){
         ^
*** [.pio\build\esp32doit-devkit-v1\libf81\WiFiClientSecure\ssl_client.cpp.o] Error 1
In file included from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFiStorage.h:23:0,
                 from .pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/WiFi.h:38,
                 from .pio\libdeps\esp32doit-devkit-v1\Arduino_ConnectionHandler\src/Arduino_ConnectionHandler.h:120,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:27,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
     static PinStatus digitalRead(uint8_t pin);
            ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/PropertyContainer.h:27:0,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/CBORDecoder.h:35,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:35,
                 from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/types/automation/CloudTelevision.h: In member function 'virtual void CloudTelevision::setAttributesFromCloud()':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/types/automation/CloudTelevision.h:229:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       setAttribute((int&)_cloud_value.pbc);
                                       ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/Property.h:52:42: note: in definition of macro 'setAttribute'
 #define setAttribute(x) setAttributeReal(x, getAttributeName(#x, '.'))
                                          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/types/automation/CloudTelevision.h:230:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
       setAttribute((int&)_cloud_value.inp);
                                       ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/cbor/../property/Property.h:52:42: note: in definition of macro 'setAttribute'
 #define setAttribute(x) setAttributeReal(x, getAttributeName(#x, '.'))
                                          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:52:84: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(property, name, -1, permission_type, seconds, fn, minDelta, synFn);
                                                                                    ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:0:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:130:10: note: declared here
     void addPropertyReal(Property& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(bool&, String, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:85:84: warning: 'void ArduinoIoTCloudClass::addPropertyReal(bool&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(property, name, -1, permission_type, seconds, fn, minDelta, synFn);
                                                                                    ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:0:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:131:10: note: declared here
     void addPropertyReal(bool& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(bool&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:91:79: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(*p, name, tag, permission_type, seconds, fn, minDelta, synFn);
                                                                               ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:55:6: note: declared here
 void ArduinoIoTCloudClass::addPropertyReal(Property& property, String name, int tag, permissionType permission_type, long seconds, void(*fn)(void), float minDelta, void(*synFn)(Property & property))
      ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(float&, String, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:107:84: warning: 'void ArduinoIoTCloudClass::addPropertyReal(float&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(property, name, -1, permission_type, seconds, fn, minDelta, synFn);
                                                                                    ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:0:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:132:10: note: declared here
     void addPropertyReal(float& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(float&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:113:79: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(*p, name, tag, permission_type, seconds, fn, minDelta, synFn);
                                                                               ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:55:6: note: declared here
 void ArduinoIoTCloudClass::addPropertyReal(Property& property, String name, int tag, permissionType permission_type, long seconds, void(*fn)(void), float minDelta, void(*synFn)(Property & property))
      ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:129:84: warning: 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(property, name, -1, permission_type, seconds, fn, minDelta, synFn);
                                                                                    ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:0:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:133:10: note: declared here
     void addPropertyReal(int& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(int&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:135:79: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(*p, name, tag, permission_type, seconds, fn, minDelta, synFn);
                                                                               ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:55:6: note: declared here
 void ArduinoIoTCloudClass::addPropertyReal(Property& property, String name, int tag, permissionType permission_type, long seconds, void(*fn)(void), float minDelta, void(*synFn)(Property & property))
      ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(unsigned int&, String, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:151:84: warning: 'void ArduinoIoTCloudClass::addPropertyReal(unsigned int&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(property, name, -1, permission_type, seconds, fn, minDelta, synFn);
                                                                                    ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:0:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:134:10: note: declared here
     void addPropertyReal(unsigned int& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(unsigned int&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:157:79: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(*p, name, tag, permission_type, seconds, fn, minDelta, synFn);
                                                                               ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:55:6: note: declared here
 void ArduinoIoTCloudClass::addPropertyReal(Property& property, String name, int tag, permissionType permission_type, long seconds, void(*fn)(void), float minDelta, void(*synFn)(Property & property))
      ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(String&, String, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:173:84: warning: 'void ArduinoIoTCloudClass::addPropertyReal(String&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(property, name, -1, permission_type, seconds, fn, minDelta, synFn);
                                                                                    ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:22:0:
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src/ArduinoIoTCloud.h:135:10: note: declared here
     void addPropertyReal(String& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated("Use addProperty(property, Permission::ReadWrite) instead.")));
          ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp: In member function 'void ArduinoIoTCloudClass::addPropertyReal(String&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))':
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:179:79: warning: 'void ArduinoIoTCloudClass::addPropertyReal(Property&, String, int, permissionType, long int, void (*)(), float, void (*)(Property&))' is deprecated: Use addProperty(property, Permission::ReadWrite) instead. [-Wdeprecated-declarations]
   addPropertyReal(*p, name, tag, permission_type, seconds, fn, minDelta, synFn);
                                                                               ^
.pio\libdeps\esp32doit-devkit-v1\ArduinoIoTCloud\src\ArduinoIoTCloud.cpp:55:6: note: declared here
 void ArduinoIoTCloudClass::addPropertyReal(Property& property, String name, int tag, permissionType permission_type, long seconds, void(*fn)(void), float minDelta, void(*synFn)(Property & property))
      ^
*** [.pio\build\esp32doit-devkit-v1\lib8b1\ArduinoIoTCloud\ArduinoIoTCloud.cpp.o] Error 1
=================================================================================================================================================================== [FAILED] Took 2.68 seconds ===================================================================================================================================================================
Der Terminalprozess "C:\Users\gyano\.platformio\penv\Scripts\platformio.exe 'run'" wurde mit folgendem Exitcode beendet: 1.

Did you try the blink sketch in PlatformIO ? did that one work correctly ?

Yes I have used PlatformIO for all kinds of different projects with a lot of different libraries without any issue.
I have completed the project with the Arduino IDE now, but I hate using that for larger projects, because of the lack of any convenience features like autocomplete etc.

I have the same problem, it appears that a lot of libraries are not referenced when the ArduinoIoTCloud library is installed. Did you find a solution?

Same problem here. I tried to include the library dependences of ArduinoIoTCloud library manually in Platformio.ini (libs_deps) but after including Arduino_ConnecionHandler and WiFiNINA, the compiler stops with the error:

.pio\libdeps\esp32dev\WiFiNINA\src\utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type

I coulnd't find where PinStatus is defined - or if I have to #declare something... Please help!

After declaring:

typedef int PinStatus

inside wifi_drv.h and client_WiFiClient.h, the compilation goes on, but stops again with:

fatal error: SPI.h: No such file or directory

I couldn't find the correct SPI.h file...

Can somebody help, please? Thanks!

Just tried the new ArduinoIotCloud library version 1.6.1 - same errors!

I just found out how to fix this problem in PlatformIO, WiFiNINA library (from the ArduinoIoTCloud.h pack) is not needed and makes a conflict..
The solution is to add

lib_ignore = WiFiNINA

to platformio.ini file.

3 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.