puuu / MQTT433gateway

MQTT 433.92 MHz radio-frequency device gateway
MIT License
137 stars 27 forks source link

no matching function for call to 'UpdaterClass::printError(ArduinoSimpleLogging::LogTarget&)' #50

Closed m4rcu5 closed 5 years ago

m4rcu5 commented 5 years ago

Hi,

I am trying to compile the latest master branch for the d1_mini board, but it fails in the following errors:

lib/WebServer/ConfigWebServer.cpp: In member function 'void ConfigWebServer::onFirmwareUpload()':
lib/WebServer/ConfigWebServer.cpp:242:36: error: no matching function for call to 'UpdaterClass::printError(ArduinoSimpleLogging::LogTarget&)'
Update.printError(Logger.info);
^
lib/WebServer/ConfigWebServer.cpp:242:36: note: candidate is:
In file included from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:248:0,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClient.h:25,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:39,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:29,
from lib/WebServer/ConfigWebServer.cpp:30:
/home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Updater.h:75:10: note: void UpdaterClass::printError(Stream&)
void printError(Stream &out);
^
/home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Updater.h:75:10: note:   no known conversion for argument 1 from 'ArduinoSimpleLogging::LogTarget' to 'Stream&'
lib/WebServer/ConfigWebServer.cpp:247:36: error: no matching function for call to 'UpdaterClass::printError(ArduinoSimpleLogging::LogTarget&)'
Update.printError(Logger.info);
^
lib/WebServer/ConfigWebServer.cpp:247:36: note: candidate is:
In file included from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:248:0,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClient.h:25,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:39,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:29,
from lib/WebServer/ConfigWebServer.cpp:30:
/home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Updater.h:75:10: note: void UpdaterClass::printError(Stream&)
void printError(Stream &out);
^
/home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Updater.h:75:10: note:   no known conversion for argument 1 from 'ArduinoSimpleLogging::LogTarget' to 'Stream&'
lib/WebServer/ConfigWebServer.cpp:254:36: error: no matching function for call to 'UpdaterClass::printError(ArduinoSimpleLogging::LogTarget&)'
Update.printError(Logger.info);
^
lib/WebServer/ConfigWebServer.cpp:254:36: note: candidate is:
In file included from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:248:0,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClient.h:25,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:39,
from /home/mvandam/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:29,
from lib/WebServer/ConfigWebServer.cpp:30:
/home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Updater.h:75:10: note: void UpdaterClass::printError(Stream&)
void printError(Stream &out);
^
/home/mvandam/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Updater.h:75:10: note:   no known conversion for argument 1 from 'ArduinoSimpleLogging::LogTarget' to 'Stream&'

I've also tried the esp12e board, which fails on the exact same error.

m4rcu5 commented 5 years ago

Sorry, Ignore me :man_facepalming:

I totally forgot that I did not use PlatformIO for a while on this machine and all libraries were out-dated. Tracking back to this change https://github.com/esp8266/Arduino/pull/4117/files, made me look at the library version.

Uninstalling framework-arduinoespressif8266 @ 1.20400.0:    [OK]
PackageManager: Installing framework-arduinoespressif8266 @ ~2.20500.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%
framework-arduinoespressif8266 @ 2.20500.190223 has been successfully installed!

And all is working!