Comments (14)
what version ESP core?
needs to be the git master :)
you look to be at 2.0.0 and you will have loots of problems there
from espasyncwebserver.
hi @me-no-dev
I have minor problem and it seems ESP8266WebServer.h not bind totally with ESPAsyncWebServer.h and I have following error and when I include the ESP8266WebServer.h my sketch freeze
my platform
last esp staging version 2 on ardino 1.6.4
sketch_mar01b.ino: In function 'void setup()':
sketch_mar01b.ino:24:3: error: 'WiFi' was not declared in this scope
sketch_mar01b.ino:24:13: error: 'WIFI_STA' was not declared in this scope
sketch_mar01b.ino:26:38: error: 'WL_CONNECTED' was not declared in this scope
sketch_mar01b.ino:39:6: error: 'handleUpload' was not declared in this scope
'WiFi' was not declared in this scope
from espasyncwebserver.
the ESP8266WebServer and the Async web server are not made to work together. Because of some structure decisions in the ESP Arduino Core, it's impossible to have both included.
from espasyncwebserver.
hi @me-no-dev
so whats make this error, I can not even compile the ESPAsyncTCP example and have following error
\arduino-1.6.4\libraries\ESPAsyncTCP\src\AsyncPrinter.cpp: In member function 'size_t AsyncPrinter::_sendBuffer()':
\arduino-1.6.4\libraries\ESPAsyncTCP\src\AsyncPrinter.cpp:116:34: error: 'class cbuf' has no member named 'available'
size_t available = _tx_buffer->available();
^
Error compiling
from espasyncwebserver.
Hi, I have the same error:
...\2.1.0-rc2\libraries\ESPAsyncTCP-master\src\AsyncPrinter.cpp: In member function 'size_t AsyncPrinter::_sendBuffer()':
...\2.1.0-rc2\libraries\ESPAsyncTCP-master\src\AsyncPrinter.cpp:116:34: error: 'class cbuf' has no member named 'available'
size_t available = _tx_buffer->available();
^
Error compiling.
Can you help us? Thanks.
from espasyncwebserver.
you guys need to use the git versions of the esp8266 arduino repository.
I imagine your cores are older versions and that is why you get that error.
The method in question was added recently
from espasyncwebserver.
Thanks. I removed Esp8266 board in Arduino and followed by this link https://github.com/esp8266/Arduino#using-git-version
Now, I uploaded build into Esp. ... I will continue to test. I need more times
from espasyncwebserver.
do you have the files on the SPIFFS? the example is using files that it is serving from it.
If you do not know how to upload the files let me know.
The user pass that it is asking you for is configurable in the sketch (you can remove it also)
from espasyncwebserver.
No, I have not the files on the SPIFFS. I don't know how upload files from folder DATA. I guess i must compile binary file from my contents and then upload it into the flash (ESP8266-12 q). I am not understand how upload files in SPIFFS. I want use some files .html and .css. and json queries.
In current version of my project the barometer (based on Advanced Webserver and bmp180) i am using variables, which sizes is near 7kb. Periodically the device reboots due to system exceptions when I try to make a request. Maybe you can give some advice me how i upload folder Data into the flash.
I think I need compile tools https://github.com/igrr/mkspiffs but i am get error in windows.
I am attach project based on your ESPAsyncWebServer code.
When trigger triggering i get error
tmr.attach(3,updateData);
....
void updateData(){
bmp180temp = bmp.readTemperature();
bmp180pres = bmp.readPressure() * 0.0075006375541921,2;
bmp180height = bmp.readAltitude();
updateUpTime();
Serial.println(ESP.getFreeHeap());
}
from espasyncwebserver.
Go to IP-Address/edit to upload.
from espasyncwebserver.
When i navigate my device by url http://192.168.4.200/edit
I get message in console
NOT_FOUND: GET http://192.168.4.200/edit
When i navigate IP-adress/list i am get authorisation window in my browser. After I putting admin/admin a get long waiting and nothing more.
In both cases, I get a blank page. I am use Chrome browser.
Some times in console appear next messages
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
One time i uncomment the next line
//Serial.printf("format start\n"); SPIFFS.format(); Serial.printf("format end\n");
I thought it would prepare a flash. It did not help.
from espasyncwebserver.
https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md#uploading-files-to-file-system
follow the instructions, get the tool and it will upload the contents of the sketch data subfolder to the filesystem
from espasyncwebserver.
Thank you me-no-dev. Your version of the code is stable. I many times pressed the F5 key, and the web server responds with confidence, because when I uploaded the html from the variable, device often reboots. Great!
I still have question. A little bit later.
from espasyncwebserver.
Using this server I have been able to upload/download and display pages at the same time. Depending on the browser, you can have up to 5 concurrent connections (limited by the ESP's network stack).
The regular server on the other hand, handles the connections one by one, so having too many connections while the server is busy is usually resulting in reboots because of network overflow and other issues.
from espasyncwebserver.
Related Issues (20)
- Compiling issues HOT 11
- I Can't make the web explorer to offer to save credentials
- Change bool AsyncStaticWebHandler::canHandle to use exact match instead of String::startsWith(_uri)
- small ddos (press F5) crash: async_tcp ....watchdog got triggered HOT 2
- Compilation Error for Newer ESP32 HOT 3
- possible memory leak at send_p?
- Forwarding Webserver with websockets HOT 2
- Get new client ID at every refresh :( HOT 1
- Refusing connection when making httpGet request with mDNS
- Problem resolved ? "Arduino\libraries\ESPAsyncWebSrv\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'?" HOT 10
- does not compile with ESP32C3 HOT 1
- ESP8266: Compilation error: invalid conversion from 'const AsyncWebParameter*' to 'AsyncWebParameter*' [-fpermissive] HOT 1
- IDF 5 Coexistence support HOT 5
- It is possible Increase buffer size for rx data by websocket?
- Cant set Table or Cell width % because of template processing HOT 2
- Web server hangs up HOT 1
- Why no Published Releases?
- Errors after libraries update
- Is it possible to make a Keep-Alive effect? HOT 5
- Simple example of read/write to SPIFFS HOT 2
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 espasyncwebserver.