GithubHelp home page GithubHelp logo

Error when build about espasyncwebserver HOT 14 CLOSED

VNArmy avatar VNArmy commented on June 30, 2024
Error when build

from espasyncwebserver.

Comments (14)

me-no-dev avatar me-no-dev commented on June 30, 2024

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.

mkeyno avatar mkeyno commented on June 30, 2024

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.

me-no-dev avatar me-no-dev commented on June 30, 2024

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.

mkeyno avatar mkeyno commented on June 30, 2024

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.

Van4ik avatar Van4ik commented on June 30, 2024

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.

me-no-dev avatar me-no-dev commented on June 30, 2024

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.

Van4ik avatar Van4ik commented on June 30, 2024

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.

me-no-dev avatar me-no-dev commented on June 30, 2024

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.

Van4ik avatar Van4ik commented on June 30, 2024

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());
}

ESP_AsyncFSBrowser_my.txt

from espasyncwebserver.

VNArmy avatar VNArmy commented on June 30, 2024

Go to IP-Address/edit to upload.

from espasyncwebserver.

Van4ik avatar Van4ik commented on June 30, 2024

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.

me-no-dev avatar me-no-dev commented on June 30, 2024

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.

Van4ik avatar Van4ik commented on June 30, 2024

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.

me-no-dev avatar me-no-dev commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.