Skip to content
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

DynamicJsonBuffer Problems #30

Closed
KPerlman opened this issue Jul 1, 2018 · 2 comments
Closed

DynamicJsonBuffer Problems #30

KPerlman opened this issue Jul 1, 2018 · 2 comments

Comments

@KPerlman
Copy link

KPerlman commented Jul 1, 2018

I get this error message:

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 R2 & mini, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

sketch\OctoPrintClient.cpp: In member function 'void OctoPrintClient::getPrinterJobResults()':

OctoPrintClient.cpp:125: error: 'DynamicJsonBuffer' was not declared in this scope

DynamicJsonBuffer jsonBuffer(bufferSize);

^

sketch\OctoPrintClient.cpp:125:3: note: suggested alternative:

In file included from C:\Users\kylem\OneDrive\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonDocument.hpp:10:0,

             from C:\Users\kylem\OneDrive\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9,

             from C:\Users\kylem\OneDrive\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

             from sketch\OctoPrintClient.h:26,

             from sketch\OctoPrintClient.cpp:24:

C:\Users\kylem\OneDrive\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/DynamicJsonBuffer.hpp:159:5: note: 'ArduinoJson::Internals::DynamicJsonBuffer'

 DynamicJsonBuffer;

 ^

OctoPrintClient.cpp:125: error: expected ';' before 'jsonBuffer'

DynamicJsonBuffer jsonBuffer(bufferSize);

                 ^

OctoPrintClient.cpp:128: error: 'jsonBuffer' was not declared in this scope

JsonObject& root = jsonBuffer.parseObject(printClient);

                  ^

OctoPrintClient.cpp:161: error: expected ';' before 'jsonBuffer2'

DynamicJsonBuffer jsonBuffer2(bufferSize2);

                 ^

OctoPrintClient.cpp:164: error: 'jsonBuffer2' was not declared in this scope

JsonObject& root2 = jsonBuffer2.parseObject(printClient);

                   ^

exit status 1
'DynamicJsonBuffer' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@KPerlman
Copy link
Author

KPerlman commented Jul 1, 2018

Nvm i fixed it :D

@KPerlman KPerlman closed this as completed Jul 1, 2018
@icewraithuk
Copy link

I'm getting this same issue - ```
sketch/OpenWeatherMapClient.cpp: In member function 'void OpenWeatherMapClient::updateWeather()':
OpenWeatherMapClient.cpp:78:3: error: 'DynamicJsonBuffer' was not declared in this scope
DynamicJsonBuffer jsonBuffer(bufferSize);


How did you fix it please? 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants