khoih-prog / ESP8266_AT_WebServer

This is simple yet complete WebServer library for AVR, Teensy, SAM DUE, SAMD, STM32, nRF52, etc. boards running ESP8266 AT-command shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Now with fix of severe limitation to permit sending much larger data
MIT License
49 stars 8 forks source link

maixduino #6

Closed reltkaine closed 2 years ago

reltkaine commented 2 years ago

Describe the bug

compile error... for maixduino using exaample webclient....

C:\Users\ruvic\AppData\Local\Arduino15\packages\Maixduino\hardware\k210\0.3.11/cores/arduino/Stream.h: In member function 'void ESP8266_AT_WebServer::handleClient()': C:\Users\ruvic\AppData\Local\Arduino15\packages\Maixduino\hardware\k210\0.3.11/cores/arduino/Stream.h:49:7: error: '.Stream::_startMillis' may be used uninitialized in this function [-Werror=maybe-uninitialized] class Stream : public Print ^~ cc1plus.exe: some warnings being treated as errors

Steps to Reproduce

Steps to reproduce the behavior. Including the MRE sketches

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

A clear and concise description of what you expected to happen.

Debug and AT-command log (if applicable)

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Information

Please ensure to specify the following:

Example

Arduino IDE version: 1.8.13
ESP32 Core Version 1.0.5
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Context:
I encountered an endless loop while trying to connect to Local WiFi.

Steps to reproduce:
1. ...
2. ...
3. ...
4. ...

Additional context

Add any other context about the problem here.

khoih-prog commented 2 years ago

This is a bug of recent Maixduino core.

Please copy Stream.h to replace Stream.h of the core, for Windows machines, at

C:\Users\ruvic\AppData\Local\Arduino15\packages\Maixduino\hardware\k210\0.3.11/cores/arduino/Stream.h

I'll add specific instructions for Maixduino into new release.

Good Luck,

khoih-prog commented 2 years ago

Hi @reltkaine

The new release ESP8266_AT_WebServer releases v1.4.1 has just been published to fix the compile error you reported.

Your contribution has been noted in Contributions and Thanks

Be sure

  1. to follow the instructions in Packages_Patches for Sipeed Maixduino boards to update the core.
  2. to check and/or update the ESP32-AT firmware to make it compatible with the library.

Releases v1.4.1

  1. Add instructions for SIPEED_MAIX_DUINO
  2. Add SIPEED_MAIX_DUINO and update remaining Packages' Patches)