Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By RichardS
#62928 Will try this out maybe today!

Very cool, thanks!

RichardS
User avatar
By NailBuster
#62946 Glad to see others are trying it out...

Are you planning to try the 'Async' version of the library or the "non-Async" verison?

The Async version is here: https://github.com/nailbuster/myWebServerAsync

I'm liking the features/stability of the Async version currently.....but programming with Async is more difficult I find.

Let me know what you think....

bye for now
David
User avatar
By hagel
#72387 Compilation problem...

Can you help me? I'm getting errors on compile:

Code: Select allArduino: 1.8.3 (Windows 7), Placa:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

AVISO: A categoria '' na biblioteca XPT2046 é invalida. Definindo para 'Uncategorized'
C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp: In function 'void handleJsonLoad(AsyncWebServerRequest*)':

C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp:407:20: error: call of overloaded 'arg(int)' is ambiguous

  if (request->arg(0) == 0)

                    ^

C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp:407:20: note: candidates are:

In file included from C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.h:63:0,

                 from C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp:36:

C:\Program Files\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:258:19: note: const String& AsyncWebServerRequest::arg(const String&) const

     const String& arg(const String& name) const; // get request argument value by name

                   ^

C:\Program Files\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:259:19: note: const String& AsyncWebServerRequest::arg(const __FlashStringHelper*) const

     const String& arg(const __FlashStringHelper * data) const; // get request argument value by F(name)   

                   ^

C:\Program Files\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:260:19: note: const String& AsyncWebServerRequest::arg(size_t) const

     const String& arg(size_t i) const;           // get request argument value by number

                   ^

C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp:409:37: error: call of overloaded 'arg(int)' is ambiguous

  String fname = "/" + request->arg(0);

                                     ^

C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp:409:37: note: candidates are:

In file included from C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.h:63:0,

                 from C:\Program Files\Arduino\libraries\myWebServerAsync-master\myWebServerAsync.cpp:36:

C:\Program Files\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:258:19: note: const String& AsyncWebServerRequest::arg(const String&) const

     const String& arg(const String& name) const; // get request argument value by name

                   ^

C:\Program Files\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:259:19: note: const String& AsyncWebServerRequest::arg(const __FlashStringHelper*) const

     const String& arg(const __FlashStringHelper * data) const; // get request argument value by F(name)   

                   ^

C:\Program Files\Arduino\libraries\ESPAsyncWebServer-master\src/ESPAsyncWebServer.h:260:19: note: const String& AsyncWebServerRequest::arg(size_t) const

     const String& arg(size_t i) const;           // get request argument value by number

                   ^

exit status 1
Erro compilando para a placa NodeMCU 1.0 (ESP-12E Module)

Este relatório teria mais informações com
"Mostrar a saida detalhada durante a compilação"
opção pode ser ativada em "Arquivo -> Preferências"