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

Version 0.1.2 zip file does not include jsonRemoveWhiteSpace function #4

Open
mikey60 opened this issue Dec 30, 2020 · 0 comments
Open

Comments

@mikey60
Copy link

mikey60 commented Dec 30, 2020

First thank you for creating the library. I actually encountered a few issues. The issues are as follows.

  • Version 0.1.1 was installed as the latest and only version when I installed the library using the Arduino IDE "Manage Libraries".
  • The zip file jsonlib-0.1.2.zip under the 0.1.2 release does not contain the jsonRemoveWhiteSpace function.
  • The jsonlib.cpp did not compile after installing the jsonlib-master.zip library version. Something about std::string not being defined in the line if (json.indexOf(name) == std::string::npos) return json.substring(0,0); This could be an issue with the compiler used for the Ameba ARM (32-bits) Boards: RTL8722DM /RTL8722CSM. This compiler seems to have some issues compiling other libraries like Pubsubclient and ArduinoJson. Hence the use of your library which is much more lightweight.

My solution was to copy the jsonRemoveWhiteSpace function from the master library to the jsonlib.cpp file of the jsonlib-0.1.2.zip archive. I also added the jsonRemoveWhiteSpace prototype definition to the jsonlib.h of the jsonlib-0.1.2.zip archive.

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

1 participant