khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
291 stars 73 forks source link

Compile Error on Platformio #2

Closed Gwenselah closed 4 years ago

Gwenselah commented 4 years ago

Hello,

I try to compile the Async_ESP_FSWebServer example. On compiling I get this error: image

My platformio.ini looks like:

[env:wemos_d1_mini32] platform = espressif8266 board = d1_mini board_build.filesystem = littlefs framework = arduino monitor_speed = 115200 lib_deps = ESP Async WebServer ESPAsyncTCP

What I am missing?

kind regards

khoih-prog commented 4 years ago

@Gwenselah

Thanks for using the library.

You have to update to use the new version ESPAsync_WiFiManager v1.1.1 to support MultiiFi

Check at then update either in

  1. Platform.io => ESPAsync_WifiManager
  2. GitHub => ESPAsync_WiFiManager v1.1.1
kaspaas commented 4 years ago

Hi,

I'm getting the same error

image

All on rev 1.1.1

image

khoih-prog commented 4 years ago

@Gwenselah

If you still have the same error, try adding the forward declaration as follows:

...
String separatorLine = "===============================================================";

uint8_t connectMultiWiFi(void);

//format bytes
String formatBytes(size_t bytes) 
...
Gwenselah commented 4 years ago

@khoih-prog This additional declaration helped to compile the code. Thank you for your assistance

khoih-prog commented 4 years ago

HI @Gwenselah , @kaspaas

Just let you know the new ESPAsync_WiFiManager release v1.1.2 already fixes the issue as well as some bugs in examples.