mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2026-04-26 00:05:55 +03:00
[GH-ISSUE #975] ERROR: Please upgrade/downgrade ArduinoJSON #437
Labels
No labels
best of
bug
development
discussion
documentation
duplicate
feature request
help wanted
help wanted
improvement
pinned
pull-request
question
stale
translation
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/esp8266_deauther#437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nc9710 on GitHub (Nov 2, 2018).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/975
Having an error when compiling, ArduinoJSON is v5. Please help.
@mrohit2011 commented on GitHub (Nov 10, 2018):
I am too facing the same issue.
@forseenink3238 commented on GitHub (Nov 29, 2018):
Me too but the source Is actually having a problem
@MartieTheSmartie commented on GitHub (Dec 13, 2018):
Same problem @spacehuhn is this fixable?
@spacehuhn commented on GitHub (Dec 14, 2018):
The obvious fix is to comment out the 3 lines (17,21,22) that are causing the error:
https://github.com/spacehuhn/esp8266_deauther/blob/master/esp8266_deauther/esp8266_deauther.ino#L17
But you still have to install the correct ArduinoJSON library version!
Check the Arduino library manager, your Arduino library folder and select the right board (under deauther not esp8266 section).
@spacehuhn commented on GitHub (Jan 4, 2019):
Check your Arduino library folder (C:\Users\user\Documents\Arduino\libraries) and delete the ArduinoJSON folder if it exists.
If the library in there is the wrong version, you might not be able to up/downgrade it from the Arduino library manager, so you have to delete it maybe.
The problem is that Arduino gives priority to the libraries in your Documents\Arduino folder instead of the one that comes with the deauther pboard ackage.
Pro Tip: Read the error message carefully! It usually tells you the error 😉
@Cubensiss commented on GitHub (Jan 6, 2019):
In this folder is not ArduinoJSON folder only readmme datei
@iomega25 commented on GitHub (Jan 9, 2019):
please help
@tobozo commented on GitHub (Jan 9, 2019):
I think the error message is trying to tell you to do this :
@pjvander commented on GitHub (Jan 11, 2019):
Quick note about a mistake I made, if you're still having trouble. I had a newer ESP8266 board installed (2.5.0b I think) when I installed ArduinoJson. Went back and installed 2.0.0 but was still having issues with ArduinoJson until I removed/re-added it. HTH
@FaroJoaoFaro commented on GitHub (Jan 23, 2019):
Hello
When I go to the Arduino Library I don't have ArduinoJson
What can I do?
@sarimbinwaseem commented on GitHub (Jan 29, 2019):
Still not working.....
What I have done...
But still problem is there..
@sarimbinwaseem commented on GitHub (Jan 29, 2019):
Download it from https://github.com/bblanchon/ArduinoJson/releases?after=v5.1.0-beta.1
and add it to Documents/Arduino then go to sketch tab in Arduino IDE and include it from there..
@labomb commented on GitHub (Feb 11, 2019):
In my case, I've determined that the problem was that the deauther board package that is required to be installed via the board manager (http://phpsecu.re/esp8266/package_deauther_index.json) includes the ArduinoJson library. On my Windows system, it was found here after installation:
%USERPROFILE%\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries
I deleted the ArduinoJson directory located there, and then installed the latest version 5 iteration (in my case, version 5.13.4) via the IDE Library Manager . This will install the ArduinoJson lib in your Documents folder (specifically, %USERPROFILE%\Documents\Arduino\libraries).
Oddly, the ArduinoJson library included with the deauther board package appears to be a valid version (5.13.0)... but I still got the upgrade/downgrade error message until it was deleted. Haven't had an issue since.
@tobozo commented on GitHub (Feb 15, 2019):
@labomb @jumblies thanks for reporting this, the deauther SDK is now bundled with ArduinoJSON 5.13.14
you will need to remove/reinstall the deauther SDK from the boards manager to see the effects though
can you please confirm this action fixed the issue ?
@labomb commented on GitHub (Feb 15, 2019):
@tobozo that took care of the problem. I removed the locally installed ArduinoJson lib and removed/reinstalled the deauth board package as requested and it appears that the updated ArduinoJson library that is now bundled works fine... no version errors during build. Thanks for the update.
@nc9710 commented on GitHub (Mar 22, 2019):
Followed advice by spacehuhn and resolved issue. I also deleted previously installed libraries which got rid of some warnings I had while compiling. Also, a quick work around (if engaging in the deauther project) is to download the latest bin file and use the ESP8266Flasher.
@tytower commented on GitHub (Aug 18, 2019):
Importantly for those installing on Arduino , now until they change to ver 6 you can install the Arduinojson version 5 but the error message then will tell you you have 2 Arduinojson libraries and importantly will give you the address of the version 6 it tried to use . Note that directory address down ,go there and delete the whole file first then restart.
@Scooby2001 commented on GitHub (Nov 16, 2019):
Hello there,
i checked every setting. Downgraded ArduinoJson library to version 5.13.4.
I tried everything that was mansioned here but still the same problem:
@tobozo commented on GitHub (Nov 16, 2019):
you still have two versions, you can safely delete the first folder (Benutzt)
@Scooby2001 commented on GitHub (Nov 16, 2019):
Thanks for youre help, tried it but still the same problem...
@Jacob12138xieyuan commented on GitHub (Nov 29, 2019):
comment 17,21,22 line, install 5.x, works for me
@anonymous7cyber commented on GitHub (Mar 17, 2020):
Thanks man!
@James0329 commented on GitHub (Aug 25, 2020):
I got a strange problem. friends.
If I don't delete checker all things will stop at version checker.
If I delete the version checker method.
Then install any 5.x ArduinoJson when I upload file to esp8266 will trigger a error like
"invalid initialization of non-const reference of type 'ArduinoJson::JsonArray&' from an rvalue of type 'ArduinoJson::JsonArray'
"
or
"no matching function for call to 'ArduinoJson::DynamicJsonBuffer::DynamicJsonBuffer(int)'
"
this problem location at ssid.cpp file.
"DynamicJsonBuffer jsonBuffer(4000);"
"JsonArray & arr = obj.get(str(SS_JSON_SSIDS)); "
I try 5.0.0|5.0.5|5.1.0|5.4.0 but nothing change.
Need some help (T_T)
@5ch4um1 commented on GitHub (Jan 3, 2021):
had this issue yesterday, but somehow it went away, i tried a few versions of ArduinoJson, to no avail, but today it works, not sure if it was the logout (restart in my case) ? I also deleted the repository and cloned it again, but i guess this shouldn't make a difference?
@nvinh5064-ctrl commented on GitHub (Jan 14, 2026):