We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Got below warnings during compilation:
sketch\FSWebServerLib.cpp: In member function 'bool AsyncFSWebServer::loadHTTPAuth()': sketch\FSWebServerLib.cpp:363:51: warning: 'const char* ArduinoJson::JsonVariantBase<TImpl>::asString() const [with TImpl = ArduinoJson::JsonObjectSubscript<const char*>]' is deprecated (declared at D:\minida28\Dropbox\Arduino\Sketch\libraries\ArduinoJson/include/ArduinoJson/Deserialization/../JsonVariantBase.hpp:36): use as<char*>() instead [-Wdeprecated-declarations] _httpAuth.wwwUsername = json["user"].asString(); ^ sketch\FSWebServerLib.cpp:364:51: warning: 'const char* ArduinoJson::JsonVariantBase<TImpl>::asString() const [with TImpl = ArduinoJson::JsonObjectSubscript<const char*>]' is deprecated (declared at D:\minida28\Dropbox\Arduino\Sketch\libraries\ArduinoJson/include/ArduinoJson/Deserialization/../JsonVariantBase.hpp:36): use as<char*>() instead [-Wdeprecated-declarations] _httpAuth.wwwPassword = json["pass"].asString();
As advised by the warning above, I simply change on these lines on FSWebServerLib.cpp file:
_httpAuth.wwwUsername = json["user"].asString(); _httpAuth.wwwPassword = json["pass"].asString();
to this
_httpAuth.wwwUsername = json["user"].as<char*>(); _httpAuth.wwwPassword = json["pass"].as<char*>();
No more warnings.
I was on:
Maybe not really an issue but I just don't know if there will be side effects to this library by doing the changes above.
Thanks for the great library though!
The text was updated successfully, but these errors were encountered:
Update FSWebServerLib.cpp
25271d9
fix gmag11#12
Thank you for the info. Solved
Sorry, something went wrong.
No branches or pull requests
Got below warnings during compilation:
As advised by the warning above, I simply change on these lines on FSWebServerLib.cpp file:
to this
No more warnings.
I was on:
Maybe not really an issue but I just don't know if there will be side effects to this library by doing the changes above.
Thanks for the great library though!
The text was updated successfully, but these errors were encountered: