khoih-prog / WiFiWebServer

This is simple yet complete WebServer library for AVR, Portenta_H7, Teensy, SAM DUE, SAMD, STM32, RP2040-based, etc. boards running WiFi modules/shields (WiFiNINA, CYW43439, U-Blox W101, W102, etc.). The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Now using WiFiMulti_Generic library
MIT License
104 stars 21 forks source link

error WIFI_USING_ESP_AT is not supported for AdvancedWebServer #16

Closed Jonnx closed 2 years ago

Jonnx commented 2 years ago

Describe the bug

I am attempting to run the SimpleWebSocket example on an Arduino Uno Wifi Rev2 as a stepping stone to connect to leverage pusher websockets. When compiling the code to the board i get the error message below. It may just be that my board is not compatible, but i figured i would ask.

Steps to Reproduce

  1. connect arduino
  2. choose board: Arduino Mega AVR -> Arduino Uno WiFi Rev2
  3. load "SimpleWebSockets" example
  4. click verify / upload

Expected behavior

code compiles and then attempts to connect to socket server

Actual behavior

code compiles with error above

Debug and AT-command log (if applicable)

In file included from /var/folders/h1/tt2m6t8j3k30wvy6w3hwdzb40000gn/T/arduino_modified_sketch_773187/SimpleWebSocket.ino:24:0:
defines.h:90:4: error: #error WIFI_USING_ESP_AT is not supported for AdvancedWebServer
   #error WIFI_USING_ESP_AT is not supported for AdvancedWebServer
    ^~~~~
In file included from /var/folders/h1/tt2m6t8j3k30wvy6w3hwdzb40000gn/T/arduino_modified_sketch_773187/defines.h:373:0,
                 from /var/folders/h1/tt2m6t8j3k30wvy6w3hwdzb40000gn/T/arduino_modified_sketch_773187/SimpleWebSocket.ino:24:
/Users/jonasweigert/Documents/Arduino/libraries/WiFiWebServer/src/WiFiWebServer.h:239:10: fatal error: string: No such file or directory
 #include <string>
          ^~~~~~~~
compilation terminated.
exit status 1
#error WIFI_USING_ESP_AT is not supported for AdvancedWebServer

Information

Please ensure to specify the following:

Arduino IDE version: 1.18.19 WifiNINA 1.8.3 OS: Mac OSX

khoih-prog commented 2 years ago

Hi @Jonnx

Thanks for your interest in the library, which is currently is not supporting megaAVR boards, such as UNO WiFi Rev2 using WiFi101.

I'll release a new library version by tomorrow to support megaAVR architecture.

Cheers,

khoih-prog commented 2 years ago

Hi @Jonnx

The new WiFiWebServer releases v1.6.2 has just been published.

Even UNO_WIFI_REV2 is supported now, the megaAVR family is outdated and with limited memory. It's advisable to move to new type of more powerful boards, such as Nano_RP2040_Connect, ESP32, etc. to avoid problem in the very near future.

Best Regards,


Releases v1.6.2

  1. Add support to megaAVR boards (UNO_WIFI_REV2, NANO_EVERY) using Arduino megaAVR core
  2. Update Packages' Patches

Selection_109