I’ve started learning PlatformIO with ESP32 core. I’m trying to migrate some of my Arduino sketches into Platformio, but unfortunately I’m still getting the error:
In file included from src/main.cpp:6:
.pio/libdeps/esp32s3_120_16_8-qio_opi/WiFiManager/WiFiManager.h:536:11: error: reference to 'byte' is ambiguous
536 | const byte DNS_PORT = 53;
| ^~~~
In file included from C:/Users/Czarek/.platformio/packages/toolchain-xtensa-esp-elf/xtensa-esp-elf/include/c++/13.2.0/bits/memory_resource.h:38,
from C:/Users/Czarek/.platformio/packages/toolchain-xtensa-esp-elf/xtensa-esp-elf/include/c++/13.2.0/unordered_map:50,
from C:/Users/Czarek/.platformio/packages/toolchain-xtensa-esp-elf/xtensa-esp-elf/include/c++/13.2.0/functional:63,
from C:/Users/Czarek/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.h:49,
from C:/Users/Czarek/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:203,
from src/main.cpp:1:
C:/Users/Czarek/.platformio/packages/toolchain-xtensa-esp-elf/xtensa-esp-elf/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'
69 | enum class byte : unsigned char {};
| ^~~~
C:/Users/Czarek/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:152:17: note: 'typedef uint8_t byte'
152 | typedef uint8_t byte;
| ^~~~
*** [.pio\build\esp32s3_120_16_8-qio_opi\src\main.cpp.o] Error 1
This is a custom board which might have some settings we don’t know.
Please also share the board manifest for this board (esp32s3_120_16_8-qio_opi.json)
The lib_deps sections in your platformio.ini must indented! Please make sure that this is just a copy and paste error and your platformio.ini looks like this: