Comments (4)
This is caused by a change on AsyncWebServer library. I've updated my code to fix this on develop branch. Check #8
I've just updated master branch to implement this change
from fsbrowserng.
You fix is working on Arduino IDE 1.8.1 and 1.8.2 but I get a warning
Compiling library "FSBrowserNG-master"
"/home/sekt/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/tmp/arduino_build_188893/core" -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10802 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src" "-I/home/sekt/Arduino/libraries/Time-master" "-I/home/sekt/Arduino/libraries/NtpClient-master/src" "-I/home/sekt/Arduino/libraries/ESPAsyncTCP-master/src" "-I/home/sekt/Arduino/libraries/ESPAsyncWebServer-master/src" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Ticker" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ArduinoOTA" "-I/home/sekt/Arduino/libraries/ArduinoJson-master" "-I/home/sekt/Arduino/libraries/FSBrowserNG-master" "-I/home/sekt/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Hash/src" "/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp" -o "/tmp/arduino_build_188893/libraries/FSBrowserNG-master/FSWebServerLib.cpp.o"
/home/sekt/Arduino/libraries/FSBrowserNG-master/FSWebServerLib.cpp: In member function 'bool AsyncFSWebServer::loadHTTPAuth()':
/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();
^
Compiling library "Hash"
from fsbrowserng.
Argghh I think I've made another duplicate -> #12 .
@sekt1953 can you try change these lines below 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*>();
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.
from fsbrowserng.
Solved, I hope! thanx
from fsbrowserng.
Related Issues (20)
- Not connecting to WIFI correctly HOT 1
- Can't get STA to work with "StartHere" example HOT 14
- Why ESPHTTPServer.begin is blocking till wifi connected? HOT 5
- Can't enter AP mode HOT 6
- Force Download from ESP8266
- NTP doesn't work? HOT 3
- SSL support
- Has FSBrowserNG been tested with the new ver 2.4.1 board manager? HOT 10
- IP address is 0.0.0.0 on serial output on Starthere HOT 2
- callback_example upload is fine but it gets a reset after GotIp address HOT 11
- AP fallback if SSID timeout? HOT 2
- Still no connection on first start and show IP 0.0.0.0 on Serial port
- Crashes on saving config new
- Been trying to put this on a ESP32
- Arduino Json V6 library issue 'DynamicJsonBuffer' was not declared in this scope HOT 3
- starthere.ino compiled and uploaded along with the SPIFFS data but not AP is started HOT 1
- change the way to enter AP mode
- Switch to AP Mode without Reset HOT 1
- Unable to edit index.html HOT 2
- List of available networks showing empty if some SSID has an unprintable character
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsbrowserng.