Hello,
I tried to compiled my project after updating Platformio and received errors regarding the build-in library ESP8266WebServer.
I’ve already uninstalled and reinstalled everything (arduino-ide, arduino15 folder, VS Code, python), but still get these errors.
- ESP8266WebServer-impl.h:624:21: error: invalid conversion from ‘int’ to ‘const __FlashStringHelper*’ [-fpermissive]
- ESP8266WebServer-impl.h:624:21: error: conversion from ‘const int’ to ‘String’ is ambiguous
- ESP8266WebServer-impl.h:624:21: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
Where / what is the Problem?
...
Processing d1_mini_pro (platform: espressif8266; board: d1_mini_pro; framework: arduino; monitor_port: COM4; monitor_speed: 115200; upload_port:
COM4; lib_deps: ESP8266WebServer @ ^1.0, werecatf/PCF8574_ESP@^1.0.10, marcoschwartz/LiquidCrystal_I2C@^1.1.4, arduino-libraries/NTPClient, bblanchon/ArduinoJson@^6.17.2, paulstoffregen/Time@^1.6.1, links2004/WebSockets@^2.3.6, gmag11/NtpClientLib@^3.0.2-beta, knolleary/PubSubClient@^2.8,
paulstoffregen/OneWire@^2.3.6, milesburton/DallasTemperature@^3.9.1, adafruit/Adafruit BME280 Library@^2.2.1, adafruit/Adafruit BusIO@^1.9.8, adafruit/Adafruit GFX Library@^1.10.12, adafruit/Adafruit Unified Sensor@^1.1.4, adafruit/Adafruit ILI9341@^1.5.10, adafruit/DHT sensor library@^1.4.3; lib_ignore: WiFi101, TinyWireM; build_flags: -D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH, -DDEBUG_ESP_PORT=Serial, -DDEBUG_ESP_OTA)
-------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini_pro.html
PLATFORM: Espressif 8266 (3.2.0) > WeMos D1 mini Pro
HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash
PACKAGES:
- framework-arduinoespressif8266 3.30002.0 (3.0.2)
- tool-esptool 1.413.0 (4.13)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 55 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266WebServer> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer)
| |-- <ESP8266WiFi> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- <PCF8574_ESP> 1.0.10 (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\PCF8574_ESP)
| |-- <Wire> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- <LiquidCrystal_I2C> 1.1.4 (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\LiquidCrystal_I2C)
| |-- <Wire> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\Wire)
|-- <NTPClient> 3.1.0 (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\NTPClient)
|-- <ArduinoJson> 6.18.5 (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\ArduinoJson)
|-- <Time> 1.6.1 (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\Time)
|-- <WebSockets> 2.3.6 (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\WebSockets)
| |-- <ESP8266WiFi> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
| |-- <Ethernet> 2.0.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\Ethernet)
| | |-- <SPI> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\SPI)
| |-- <SPI> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\SPI)
| |-- <Hash> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\Hash)
| |-- <ESP8266WebServer> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer)
| | |-- <ESP8266WiFi> 1.0 (C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi)
|-- <NtpClientLib> 3.0.2-beta (D:\Dokumente\PlatformIO\Projects\THP\THP-Sender_wPlug_092\.pio\libdeps\d1_mini_pro\NtpClientLib)
-DLWsrc\main.cpp:2898:38: required from here
IP_OPEN_SRC C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src/**ESP8266WebServer-impl.h:624:21: error: could not convert 'args#0' from 'const char* const [2]' to 'String'**
624 | _currentHeaders = new RequestArgument[_headerKeysCount = sizeof...(args) + 2] {
| ^~~~~~~-~D~NO~N~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OS | |
DK2 | const char* const [2]
2x_190 625 | { .key = FPSTR(AUTHORIZATION_HEADER), .value = emptyString },
7 | ~~~0~3~=~1~ ~-~D~T~C~P~_~M~S~S~=~1~4~6~0~ ~-~D~L~W~I~P~~~~~~~~~~~~_~F~E~A~T~U~R~E~S~=~1~ ~-~D~L~W~I~P_~~~~
I 626 | { .key = FPSTR(ETAG_HEADER), .value = emptyString },
P | ~~~~V~6~=~0~ ~-~D~V~T~A~B~L~E~S~_~I~N~_~FLA~S~H~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 627 | { .key = args, .value = emptyString } ...
D | ~~~M~M~U~~_~I~R~A~M~_~S~I~~~~~~~~~~~~~~Z~E~=~0~x~8~0~0~~0~ ~-~D~M
M 628 | };
U_ | ~
ICAC:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src/**ESP8266WebServer-impl.h:624:21: error: conversion from 'const int' to 'String' is ambiguous**
CHEIn file included from C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:286,
_SIZ from src\main.cpp:1:
E=0C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/WString.h:59:9: note: candidate: 'String::String(const __FlashStringHelper*)' (near match)
x8000 - 59 | String(const __FlashStringHelper *str);
IC | ^~~~:~\~U
seC:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/WString.h:59:9: note: conversion of argument 1 would be ill-formed:
rs\In file included from C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src/ESP8266WebServer.h:340,MiKo from src\main.cpp:11:
\.C:\Users\MiKo\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src/**ESP8266WebServer-impl.h:624:21: error: invalid conversion from 'int' to 'const __FlashStringHelper*' [-fpermissive]**
pl 624 | _currentHeaders = new RequestArgument[_headerKeysCount = sizeof...(args) + 2] {
a | ^~~~t~f~o~r~m~i~o~\~p~a~c~k~a~g~e~s~\~f~r~a~m~e~w~o~r~k~-~a~r~d~u~i~n~o~e~s~p~r~e~s~si~~~~~~~~~~~~~~~~~
f | |
826 | int
6\t 625 | { .key = FPSTR(AUTHORIZATION_HEADER), .value = emptyString },