tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.59k stars 1.97k forks source link

Trying to Configure Multiple SSIDs in Wifi Manager #844

Open shreyhere8 opened 5 years ago

shreyhere8 commented 5 years ago

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

WiFimanager Branch/Release:

Esp8266/Esp32:

Hardware: ESP-12e, esp01, esp25

ESP Core Version: 2.4.0, staging

Description

Problem description

Settings in IDE

Module: NodeMcu, Wemos D1

Additional libraries:

Sketch


#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

messages here
acidobinario commented 5 years ago

@shreyhere8 I'm not sure what the problem is... but I managed to use multiple wifi credentials storing them in SPIFFS with a JSON struct (I'm still working on trying to connect to the best wifi option), tell me what is your approach.

shreyhere8 commented 5 years ago

I am working on a IOT project for smart agriculture. I need to create something like a wifi manager using esp8266 where I would be able to input mulitple wifi credentials and store them on EEPROM. So the Purpose is when I move my device between places, I would not have to re configure the wifi credentials each time. The wifi manager would automatically scan and try to connect to the best available signal.

My Approach was to integrate the Wifi manager and Wifi Multi libraries but I was unable to do so. The change will also be required in the HTML page for the wifi manager to accept multiple SSIDs and Passwords.

acidobinario commented 5 years ago

@shreyhere8 check out my blog post of this: https://acidobinario.me/blog/esp8266-wifimanager-multiple-wifi/

an example of that is on my repo https://github.com/acidobinario/espMultiWifiExample