Hello.
I’m new with this about Arduino and i’m trying in compiling the project (https://ubidots.com/blog/connect-your-esp8266-to-any-available-wi-fi-network/)
so i followed all the steps but i get this warnings and errors.
Probably someone else could solved it.
Arduino: 1.8.10 (Windows 10), Board: “NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200, 4M (3M SPIFFS)”
In file included from C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:56:0,
from C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:10,
from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:7:18: warning: unused parameter ‘method’ [-Wunused-parameter]
virtual bool canHandle(HTTPMethod method, String uri) { return false; }
^
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:7:18: warning: unused parameter ‘uri’ [-Wunused-parameter]
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:8:18: warning: unused parameter ‘uri’ [-Wunused-parameter]
virtual bool canUpload(String uri) { return false; }
^
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:9:18: warning: unused parameter ‘server’ [-Wunused-parameter]
virtual bool handle(ESP8266WebServer& server, HTTPMethod requestMethod, String requestUri) { return false; }
^
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:9:18: warning: unused parameter ‘requestMethod’ [-Wunused-parameter]
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:9:18: warning: unused parameter ‘requestUri’ [-Wunused-parameter]
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:10:18: warning: unused parameter ‘server’ [-Wunused-parameter]
virtual void upload(ESP8266WebServer& server, String requestUri, HTTPUpload& upload) {}
^
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:10:18: warning: unused parameter ‘requestUri’ [-Wunused-parameter]
C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/detail/RequestHandler.h:10:18: warning: unused parameter ‘upload’ [-Wunused-parameter]
In file included from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:0:
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h: In member function ‘void ConfigParameter::fromJson(ArduinoJson::JsonObject*)’:
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:39:46: error: ‘ArduinoJson::JsonObject’ has no member named ‘is’
if (json->containsKey(name) && json->is<T>(name)) {
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:39:50: error: expected primary-expression before ‘>’ token
if (json->containsKey(name) && json->is<T>(name)) {
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:40:26: error: ‘ArduinoJson::JsonObject’ has no member named ‘get’
*ptr = json->get<T>(name);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:40:31: error: expected primary-expression before ‘>’ token
*ptr = json->get<T>(name);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h: In member function ‘virtual void ConfigStringParameter::fromJson(ArduinoJson::JsonObject*)’:
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:70:46: error: ‘ArduinoJson::JsonObject’ has no member named ‘is’
if (json->containsKey(name) && json->is<char *>(name)) {
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:70:49: error: expected primary-expression before ‘char’
if (json->containsKey(name) && json->is<char *>(name)) {
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:70:49: error: expected ‘)’ before ‘char’
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:71:40: error: ‘ArduinoJson::JsonObject’ has no member named ‘get’
const char * value = json->get<const char *>(name);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:71:44: error: expected primary-expression before ‘const’
const char * value = json->get<const char *>(name);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h: In member function ‘virtual void ConfigStringParameter::toJson(ArduinoJson::JsonObject*)’:
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:79:28: error: no matching function for call to ‘ArduinoJson6130_000001::ObjectRef::set(const char*&, char*&)’
json->set(name, ptr);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:79:28: note: candidate is:
In file included from C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:18:0,
from C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:14,
from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:
C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/ObjectRef.hpp:170:21: note: bool ArduinoJson6130_000001::ObjectRef::set(ArduinoJson6130_000001::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/ObjectRef.hpp:170:21: note: candidate expects 1 argument, 2 provided
C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino: At global scope:
C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:33:6: warning: unused parameter ‘topic’ [-Wunused-parameter]
void callback(char* topic, byte* payload, unsigned int length){ }
^
C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:33:6: warning: unused parameter ‘payload’ [-Wunused-parameter]
C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:33:6: warning: unused parameter ‘length’ [-Wunused-parameter]
In file included from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:0:
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h: In instantiation of ‘void ConfigParameter::toJson(ArduinoJson::JsonObject*) [with T = signed char; ArduinoJson::JsonObject = ArduinoJson6130_000001::ObjectRef]’:
C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:104:1: required from here
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:45:9: error: no matching function for call to ‘ArduinoJson6130_000001::ObjectRef::set(const char*&, signed char&)’
json->set(name, *ptr);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:45:9: note: candidate is:
In file included from C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:18:0,
from C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:14,
from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:
C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/ObjectRef.hpp:170:21: note: bool ArduinoJson6130_000001::ObjectRef::set(ArduinoJson6130_000001::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/ObjectRef.hpp:170:21: note: candidate expects 1 argument, 2 provided
In file included from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:0:
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h: In instantiation of ‘void ConfigParameter::toJson(ArduinoJson::JsonObject*) [with T = bool; ArduinoJson::JsonObject = ArduinoJson6130_000001::ObjectRef]’:
C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:104:1: required from here
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:45:9: error: no matching function for call to ‘ArduinoJson6130_000001::ObjectRef::set(const char*&, bool&)’
json->set(name, *ptr);
^
C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:45:9: note: candidate is:
In file included from C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:18:0,
from C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master\src/ConfigManager.h:14,
from C:\Users\PC\Documents\Arduino\data\mqtt1\mqtt1\mqtt1.ino:2:
C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/ObjectRef.hpp:170:21: note: bool ArduinoJson6130_000001::ObjectRef::set(ArduinoJson6130_000001::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
C:\Users\PC\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/ObjectRef.hpp:170:21: note: candidate expects 1 argument, 2 provided
Multiple libraries were found for “EEPROM.h”
Used: C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\EEPROM
Multiple libraries were found for “ESP8266WebServer.h”
Used: C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer
Multiple libraries were found for “ArduinoJson.h”
Used: C:\Users\PC\Documents\Arduino\libraries\ArduinoJson
Multiple libraries were found for “PubSubClient.h”
Used: C:\Users\PC\Documents\Arduino\libraries\PubSubClient
Not used: C:\Users\PC\Documents\Arduino\libraries\pubsubclient-master
Multiple libraries were found for “ESP8266WiFi.h”
Used: C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi
Multiple libraries were found for “ConfigManager.h”
Used: C:\Users\PC\Documents\Arduino\libraries\ConfigManager-master
Multiple libraries were found for “DNSServer.h”
Used: C:\Users\PC\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\DNSServer
exit status 1
Error compiling for board NodeMCU 0.9 (ESP-12 Module).
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.