-
Notifications
You must be signed in to change notification settings - Fork 70
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
FSWebServerLib.cpp:363:51: warning: 'const char* ArduinoJson::JsonVariantBase<TImpl>::asString() #10
Comments
This is caused by a change on AsyncWebServer library. I've updated my code to fix this on develop branch. Check #8 |
You fix is working on Arduino IDE 1.8.1 and 1.8.2 but I get a warning |
Argghh I think I've made another duplicate -> #12 . @sekt1953 can you try change these lines below on FSWebServerLib.cpp file:
to this
and see if it fixed your issues. Also please style your comment, no offense but it's hard to read... 😄 Fence the code with triple back ticks. |
Solved, I hope! thanx |
Hej I am trying to use you FSBrowserNG.ino i am using Arduino IDE 1.8.1 with ESP8266 version 2.3.0
and selected NodeMCU 1.0 board but yhise errors when compiling
/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp:363:51: warning: 'const char* ArduinoJson::JsonVariantBase::asString() const [with TImpl = ArduinoJson::JsonObjectSubscript<const char*>]' is deprecated (declared at /home/sekt/Arduino/libraries/ArduinoJson-master/include/ArduinoJson/Deserialization/../JsonVariantBase.hpp:36): use as<char*>() instead [-Wdeprecated-declarations]
_httpAuth.wwwUsername = json["user"].asString();
^
/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp:364:51: warning: 'const char* ArduinoJson::JsonVariantBase::asString() const [with TImpl = ArduinoJson::JsonObjectSubscript<const char*>]' is deprecated (declared at /home/sekt/Arduino/libraries/ArduinoJson-master/include/ArduinoJson/Deserialization/../JsonVariantBase.hpp:36): use as<char*>() instead [-Wdeprecated-declarations]
_httpAuth.wwwPassword = json["pass"].asString();
^
/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp: In member function 'void AsyncFSWebServer::handleFileCreate(AsyncWebServerRequest*)':
/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp:571:33: error: call of overloaded 'arg(int)' is ambiguous
String path = request->arg(0);
^
/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp:571:33: note: candidates are:
In file included from /home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.h:17:0,
from /home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp:6:
/home/sekt/Arduino/libraries/ESPAsyncWebServer-master/src/ESPAsyncWebServer.h:246:19: note: const String& AsyncWebServerRequest::arg(const String&) const
const String& arg(const String& name) const; // get request argument value by name
and more of the same.
do you have an idea what to change
SEK. Thomsen
The text was updated successfully, but these errors were encountered: