The main disadvantage is to configure the network credentials in a esp8266 without requiring to modify and download the firmware again, I have tested with several methods to dynamically store the SSID and PASSWORD of a network.
In the case of the esp8266 programmed in Arduino IDE for some time I have seen a proposal called WIfiManager presented by Tzapu, which allows an agile and fast connection, the first tests are registered since 2015.
WifiManager
This time we will make a brief introduction to the WifiManager library, I have tested 2 similar versions.
Version 1: WifiManager created by tzapu - creator
Version 2: WifiManagerby Ken Taylormodified and based on WifiManager created by tzapu.
Note: they work perfectly, obviously between the 2 libraries there are variations in code implementations and that generates incompatibilities or errors in some functions between version 1 and 2.
PDAControl: Complete info and more test.
Introduction library WifiManager
http://pdacontrolen.com/introduction-library-wifim...
PDAControl: Informacion Completa y mas pruebas.
Introduccion libreria WifiManager
http://pdacontroles.com/introduccion-libreria-wifi...
References
Thanks you for this great contribution...
Tzapu
https://github.com/tzapu/WiFiManager
Ken Taylor
Tests
An example has been downloaded from Github and has been cut to make a light and simple version, without the slightly complex functionalities that we will see later, this version will realize the basic configuration of NETWORK credentials.
Mounting
We have used an ESP8266 12E, we have added a button to configure the Wifi and 2 led diodes as indicators.
Connections
Introduction library WifiManager esp8266 explained - explicado
Description of Sequence
Basic explanation:
WifiManager + Emoncms + ESP8266 , Configure & measurement Temperature #1
FirstWiFiManager Integration + Emoncms Client in ESP8266, Configuration and sending of Temperature, without modifying .....
Documentation: WifiManager + Emoncms (OEM) with ESP8266 (Temperature) #1
Conclusions
Although we have only done some testing, WifiManager is a good solution fast and easy it works correctly.
We are analyzing the methods used to add and store more parameters, according to the examples a Json file is created in which the parameters are written, this file "config.json" is saved in SPIFFS internal file system the ESP8266, and is written only when configuring parameters and is read every time the module is restarted.
UPDATED!!!!!!!!!!!!!
WifiManager + Emoncms (OEM) With ESP8266 (Temperature) #1
https://www.instructables.com/id/WifiManager-Emonc...
In next tutorials - En proximos tutoriales
we will integrate:
esp8266 + WifiManager + Modbus TCP / IP
esp8266 + WifiManager + Modbus RTU
esp8266 + WifiManager + MQTT
esp8266 + WifiManager + CoAP
More information
PDAControl: In English - En español
Industrial Testing
PDAControl
Downloads, references, more test complete...
Introduction library WifiManager
http://pdacontrolen.com/introduction-library-wifim...
Introduccion libreria WifiManager
http://pdacontroles.com/introduccion-libreria-wifi...
References
https://github.com/kentaylor/WiFiManager
https://github.com/tzapu/WiFiManager
Thanks you for this great contribution...