You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
First thank you for creating the library. I actually encountered a few issues. The issues are as follows.
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.
The text was updated successfully, but these errors were encountered: