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

Compilation warning upon Json lib's update #144

Open
woodlist opened this issue Sep 27, 2024 · 3 comments
Open

Compilation warning upon Json lib's update #144

woodlist opened this issue Sep 27, 2024 · 3 comments

Comments

@woodlist
Copy link

c:\Users\woodl\Documents\Arduino\libraries\AsyncTelegram2\src\AsyncTelegram2.cpp: In member function 'MessageType AsyncTelegram2::getNewMessage(TBMessage&)': c:\Users\woodl\Documents\Arduino\libraries\AsyncTelegram2\src\AsyncTelegram2.cpp:267:35: warning: 'bool ArduinoJson::V720PB22::JsonDocument::containsKey(TChar*) const [with TChar = const char]' is deprecated: use doc["key"].is<T>() instead [-Wdeprecated-declarations] 267 | if (!updateDoc.containsKey("result")) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from c:\Users\woodl\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:33, from c:\Users\woodl\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9, from c:\Users\woodl\Documents\Arduino\libraries\AsyncTelegram2\src\AsyncTelegram2.h:7, from c:\Users\woodl\Documents\Arduino\libraries\AsyncTelegram2\src\AsyncTelegram2.cpp:1: c:\Users\woodl\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Document/JsonDocument.hpp:157:8: note: declared here 157 | bool containsKey(TChar* key) const { | ^~~~~~~~~~~

@cotestatnt
Copy link
Owner

Yes I am aware of this.
I have already committed to solve the warning.

@woodlist
Copy link
Author

Thanks! The warning gone.

@woodlist
Copy link
Author

Greetings, Mr. Tolentino.

I would like to report that "keyboard.ino" does not work anymore (The compilation is error free). I suppose that happened upon Json update.

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