bblanchon / ArduinoJson

đź“ź JSON library for Arduino and embedded C++. Simple and efficient.
https://arduinojson.org
MIT License
6.69k stars 1.12k forks source link

StaticJsonBuffer was not declared in this scope #801

Closed pku55 closed 6 years ago

pku55 commented 6 years ago

Dear nerds

I'm faced with the "StaticJsonBuffer was not declared in this scope" problem. I use an Arduino nanoESP and the ArduinoJson Library 5.13.2. I tested also other versions. I do manage and include the libraries with the IDE. The Board without ISCP Connectors use the old bootloader (older than January 2018). The IDE has the Version 1.8.5. The included libraries are:

include

include

include

include

include

include

Even the examples provided with the arduinoJson-master ZIP File can not be compiled an yield to "StaticJsonBuffer was not declared in this scope".

I would be very happy, if some knows a solution. Many thanks Peter

bblanchon commented 6 years ago

Hello fellow human,

This usually happens when a program written for ArduinoJson 5 is compiled against the version 6 of the library.

Any chance that might be your case too?

Regards, Benoit

pku55 commented 6 years ago

Many thanks Benoit for your reply.

I've attached two Files:

Many thanks again Peter

pku55 commented 6 years ago

Dear Benoit

Many thanks supporting me.

As you can see in the attached screen shots, the program is written for ArduinoJson 5 and the included library is ArduinoJson version 5.13.2, not a beta 6 version.

The IDE is 1.8.5 and the #include ArduinoJson.h command is done.

I would be very happy, if you have any ideas how to solve this case.

Thank you very much.

(I hope you understand my English)

Mit freundlichen GrĂĽssen

Peter Kunz

Fritz-Käser-Strasse 18

4562 Biberist

+41 79 218 33 67

mailto:pku55@bluewin.ch pku55@bluewin.ch

mailto:kunz-family@hotmail.com kunz-family@hotmail.com

Sie sind eingeladen sich auf https://swissics.ch/ swissics.ch, unten auf den Seiten, fĂĽr den Newsletter anzumelden und als Arbeitsuchender oder Arbeitgeber zu registrieren. Danke.

Success comes to those who fight for it

Von: Benoît Blanchon [mailto:notifications@github.com] Gesendet: Dienstag, 21. August 2018 09:22 An: bblanchon/ArduinoJson ArduinoJson@noreply.github.com Cc: Peter Kunz pku55@bluewin.ch; Author author@noreply.github.com Betreff: Re: [bblanchon/ArduinoJson] StaticJsonBuffer was not declared in this scope (sorry for my bad English) (#801)

Hello fellow human,

This usually happens when a program written for ArduinoJson 5 is compiled against the version 6 of the library.

Any chance that might be your case too?

Regards, Benoit

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bblanchon/ArduinoJson/issues/801#issuecomment-414575693 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aoi8R-EgHzle3erAvzMQExxhER9iDC70ks5uS7UGgaJpZM4WC-du . https://github.com/notifications/beacon/Aoi8R5TMTmfyxC3byb0rVj0ImWEFY9Q9ks5uS7UGgaJpZM4WC-du.gif

bblanchon commented 6 years ago

Hi @pku55,

This is a very strange case...

Is it possible that there is another ArduinoJson.h installed on your computer? It may be a manual installation from a zip file or a git clone. I could also be one of the other installed libraries that contains an ArduinoJson.h.

BTW, don't apologize for your English; from what I can tell, it's much better than the average.

Regards, Benoit

pku55 commented 6 years ago

Hi Benoit

Many thanks for your answer.

I will check this. I do delete all arduinoJson Files and reinstall the library.

Mit freundlichen GrĂĽssen

Peter Kunz

Fritz-Käser-Strasse 18

4562 Biberist

+41 79 218 33 67

mailto:pku55@bluewin.ch pku55@bluewin.ch

mailto:kunz-family@hotmail.com kunz-family@hotmail.com

Sie sind eingeladen sich auf https://swissics.ch/ swissics.ch, unten auf den Seiten, fĂĽr den Newsletter anzumelden und als Arbeitsuchender oder Arbeitgeber zu registrieren. Danke.

Success comes to those who fight for it

Von: Benoît Blanchon [mailto:notifications@github.com] Gesendet: Mittwoch, 22. August 2018 09:19 An: bblanchon/ArduinoJson ArduinoJson@noreply.github.com Cc: Peter Kunz pku55@bluewin.ch; Mention mention@noreply.github.com Betreff: Re: [bblanchon/ArduinoJson] StaticJsonBuffer was not declared in this scope (sorry for my bad English) (#801)

Hi @pku55 https://github.com/pku55 ,

This is a very strange case...

Is it possible that there is another ArduinoJson.h installed on your computer? It may be a manual installation from a zip file or a git clone. I could also be one of the other installed libraries that contains an ArduinoJson.h.

BTW, don't apologize for your English; from what I can tell, it's much better than the average.

Regards, Benoit

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bblanchon/ArduinoJson/issues/801#issuecomment-414936239 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aoi8RwyMewaZYQ7Xp3zFrfHLh0UalLNNks5uTQXegaJpZM4WC-du . https://github.com/notifications/beacon/Aoi8R0igf2ruCySLio1bSy--FKFp13eoks5uTQXegaJpZM4WC-du.gif

pku55 commented 6 years ago

Hi Benoit

I think the problem is solved.

I do store all Arduino data on the disc (e:)

I consciously save all Arduino data on the disc (e:)

I could find other Arduino libraries on disc (c:). I find out that the IDE will store them on (c:)

So I have to chance the IDE presettings to get order in the “stable”.

Sorry, but I had to learn this first.

Many thanks for yout great support.

Mit freundlichen GrĂĽssen

Peter Kunz

Fritz-Käser-Strasse 18

4562 Biberist

+41 79 218 33 67

mailto:pku55@bluewin.ch pku55@bluewin.ch

mailto:kunz-family@hotmail.com kunz-family@hotmail.com

Sie sind eingeladen sich auf https://swissics.ch/ swissics.ch, unten auf den Seiten, fĂĽr den Newsletter anzumelden und als Arbeitsuchender oder Arbeitgeber zu registrieren. Danke.

Success comes to those who fight for it

Von: Benoît Blanchon [mailto:notifications@github.com] Gesendet: Mittwoch, 22. August 2018 09:19 An: bblanchon/ArduinoJson ArduinoJson@noreply.github.com Cc: Peter Kunz pku55@bluewin.ch; Mention mention@noreply.github.com Betreff: Re: [bblanchon/ArduinoJson] StaticJsonBuffer was not declared in this scope (sorry for my bad English) (#801)

Hi @pku55 https://github.com/pku55 ,

This is a very strange case...

Is it possible that there is another ArduinoJson.h installed on your computer? It may be a manual installation from a zip file or a git clone. I could also be one of the other installed libraries that contains an ArduinoJson.h.

BTW, don't apologize for your English; from what I can tell, it's much better than the average.

Regards, Benoit

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bblanchon/ArduinoJson/issues/801#issuecomment-414936239 , or mute the thread https://github.com/notifications/unsubscribe-auth/Aoi8RwyMewaZYQ7Xp3zFrfHLh0UalLNNks5uTQXegaJpZM4WC-du . https://github.com/notifications/beacon/Aoi8R0igf2ruCySLio1bSy--FKFp13eoks5uTQXegaJpZM4WC-du.gif

bblanchon commented 6 years ago

You're welcome @pku55. Thanks for using ArduinoJson.