bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

Problems compiling sketch #37

Open PilotC150 opened 6 years ago

PilotC150 commented 6 years ago

Not sure what's happening here. I followed all the directions and I'm just trying to get the main sketch to compile but I'm getting errors with the ESP8266WiFi library.

(I tried putting this in a code block but there's too many single quotes in there for it to get formatted correctly.)

I tried updating to latest Arduino IDE and updating all boards and libraries but still getting the error.

Any idea what could be causing these errors?

C:\Users\Chris\Documents\Arduino\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp: In member function 'void ESP8266WiFiClass::beginSmartConfig()':

C:\Users\Chris\Documents\Arduino\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp:393:76: error: cannot convert 'sc_type' to 'sc_callback_t {aka void ()(sc_status, void)}' for argument '1' to 'bool smartconfig_start(sc_callback_t, ...)'

 smartconfig_start(SC_TYPE_ESPTOUCH, &ESP8266WiFiClass::_smartConfigDone);

                                                                        ^

C:\Users\Chris\Documents\Arduino\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp: In member function 'bool ESP8266WiFiClass::smartConfigDone()':

C:\Users\Chris\Documents\Arduino\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp:409:35: error: 'smartconfig_get_status' was not declared in this scope

 return smartconfig_get_status() == SC_STATUS_LINK_OVER;

                               ^

Multiple libraries were found for "ESP8266mDNS.h" Used: C:\Users\Chris\Documents\Arduino\libraries\ESP8266mDNS Not used: C:\Users\Chris\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266mDNS Multiple libraries were found for "ESP8266WiFi.h" Used: C:\Users\Chris\Documents\Arduino\libraries\ESP8266WiFi Not used: C:\Users\Chris\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).

DanielXYZ2000 commented 6 years ago

Hi, I just compiled the current verision successfully. I had a similar problem with multiple libraries and had parallel installation of the arduino IDE (normal installation and portable version) - After removing all an a fresh clean installation I got it work. Sorry that I can't give more details.