-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compiling #8
Comments
Hi I think the Json library version needs to be 5.x take the latest on 5.x
Cheers,
N.
… On 24 Jun 2019, at 13:32, mpaneth ***@***.***> wrote:
Help please as I am trying to compile Basic
I have loaded the following libraries
ArduinoJson: v6.11.1
pubsubclient: v2.7
WifiManager: Development branch
WifiMQTTManager: v1.0.2-beta
When I compile I get the following output
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\examples\Basic\Basic.ino:7:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
WiFiMQTTManager wmm(RESET_BUTTON, AP_PASSWORD); // AP_PASSWORD is defined in the secrets.h file
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:117:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
DynamicJsonBuffer jsonBuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:192:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
DynamicJsonBuffer jsonBuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:266:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
StaticJsonBuffer<2000> JSONbuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp: In member function 'void WiFiMQTTManager::setup(String)':
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:117:23: error: 'jsonBuffer' was not declared in this scope
DynamicJsonBuffer jsonBuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:130:10: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'prettyPrintTo'
json.prettyPrintTo(Serial);
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:131:10: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'printTo'
json.printTo(configFile);
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp: In member function 'void WiFiMQTTManager::_setupSpiffs()':
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:192:27: error: 'jsonBuffer' was not declared in this scope
DynamicJsonBuffer jsonBuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:194:14: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'printTo'
json.printTo(Serial);
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:195:18: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'success'
if (json.success()) {
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp: In member function 'void WiFiMQTTManager::_registerDevice()':
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:266:19: error: expected primary-expression before '<' token
StaticJsonBuffer<2000> JSONbuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:266:26: error: 'JSONbuffer' was not declared in this scope
StaticJsonBuffer<2000> JSONbuffer;
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:282:8: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'printTo'
root.printTo(messageBuffer, sizeof(messageBuffer));
^
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:286:8: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'prettyPrintTo'
root.prettyPrintTo(Serial);
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Mike\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.2\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for the super-fast response. :-) V5.3.15 compiles now with only 1 warning C:\Users\Mike\AppData\Local\Temp\arduino_modified_sketch_728169\Basic.ino:7:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] WiFiMQTTManager wmm(RESET_BUTTON, AP_PASSWORD); // AP_PASSWORD is defined in the secrets.h file
Sketch uses 848174 bytes (64%) of program storage space. Maximum is 1310720 bytes. |
@mpaneth - I modified the line like this and it seemed to quiet the issue:
|
Thank you for your help. I can now compile cleanly, but can't seem to get the app to start. There is no output on the serial interface and no WiFi AP. Any ideas?? Here is my compile & load log Sketch uses 848170 bytes (64%) of program storage space. Maximum is 1310720 bytes. Writing at 0x0000e000... (100 %) Writing at 0x00001000... (100 %) Writing at 0x00010000... (3 %) Writing at 0x00008000... (100 %) Leaving... |
Help please as I am trying to compile Basic
I have loaded the following libraries
ArduinoJson: v6.11.1
pubsubclient: v2.7
WifiManager: Development branch
WifiMQTTManager: v1.0.2-beta
When I compile I get the following output
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\examples\Basic\Basic.ino:7:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
WiFiMQTTManager wmm(RESET_BUTTON, AP_PASSWORD); // AP_PASSWORD is defined in the secrets.h file
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:117:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:192:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:266:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
StaticJsonBuffer<2000> JSONbuffer;
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp: In member function 'void WiFiMQTTManager::setup(String)':
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:117:23: error: 'jsonBuffer' was not declared in this scope
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:130:10: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'prettyPrintTo'
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:131:10: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'printTo'
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp: In member function 'void WiFiMQTTManager::_setupSpiffs()':
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:192:27: error: 'jsonBuffer' was not declared in this scope
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:194:14: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'printTo'
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:195:18: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'success'
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp: In member function 'void WiFiMQTTManager::_registerDevice()':
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:266:19: error: expected primary-expression before '<' token
StaticJsonBuffer<2000> JSONbuffer;
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:266:26: error: 'JSONbuffer' was not declared in this scope
StaticJsonBuffer<2000> JSONbuffer;
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:282:8: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'printTo'
root.printTo(messageBuffer, sizeof(messageBuffer));
C:\Users\Mike\Documents\Arduino\libraries\WifiMQTTManager\src\WiFiMQTTManager.cpp:286:8: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6111_00000::ObjectRef}' has no member named 'prettyPrintTo'
root.prettyPrintTo(Serial);
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Mike\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.2\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: