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

'StaticJsonBuffer' was not declared in this scope #29

Closed
ciscozine opened this issue Feb 8, 2019 · 5 comments
Closed

'StaticJsonBuffer' was not declared in this scope #29

ciscozine opened this issue Feb 8, 2019 · 5 comments

Comments

@ciscozine
Copy link

Hi, if I try to compile the last version of .ino file I receive this message from the compiler

'StaticJsonBuffer' was not declared in this scope

I need to compile the ino files because I would use authentication and encryption (SSL).

All lib installed are the last stable version.
thanks

@maragelis
Copy link
Owner

maragelis commented Feb 8, 2019

As you can see here https://arduinojson.org/v5/doc/encoding/ documentation for arduinojson lib version 5.13.4 states clearly on page 13/33 StaticJsonBuffer jb;

So looks like you are using a version other from this .
check you version

image

@ciscozine
Copy link
Author

Nothing to do
Now I have this error:

'getSubEvent' was not declared in this scope

I have installed a clean arduino 1.8.8 with:
esp8266 2.5.0

LIB:
pubsubclient 2.7.0
wifimanager 0.14
arduino json 5.13.4
NTPtimeESP-master I find only that one https://github.com/SensorsIot/NTPtimeESP/ (is it correct?)

thanks

@maragelis
Copy link
Owner

yes my friend, NTPtimeESP-master is correct.

error 'getSubEvent' was not declared in this scope
you have to go to sketch->add file and add the other ino files in the project

@ciscozine
Copy link
Author

Nothing to do:

C:\Users\fabio\Documents\Arduino\paradox\ParadoxAlarmSystemOTA\ParadoxAlarmSystemOTA.ino: In function 'void setup_wifi()':

ParadoxAlarmSystemOTA:1004:30: error: call of overloaded 'String(IPAddress)' is ambiguous

     trc((String)WiFi.localIP());

@maragelis
Copy link
Owner

maragelis commented Feb 8, 2019

please use Arduino core 2.4.2
I checked it compiles with 2.5.0 but you will have to remove the above line.

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