rdt70 / ESP8266

NodeMcu ESP8266 Alarm detection project (for Lince Euro5K)
0 stars 0 forks source link

To get the parameters from config page #13

Open rdt70 opened 6 years ago

rdt70 commented 6 years ago

The connection parameters are hard coded. It may be useful to add those on a config web page and saved on EEPROM. The following are parameters that may be useful to get from config:

The idea was to put the system in AP mode with a config we page. Getting the parameters from that page and saving on EEPROM. Then connect normally.

rdt70 commented 6 years ago

To check again (not worked in the past tests) with class ESP8266WebServer. The method ESP8266WebServer.on("/path", pathHandler) simplify the assignment of a function to a specific path. Refer to: https://techtutorialsx.com/2016/10/22/esp8266-webserver-getting-query-parameters/

  1. Config funtion associated as: server.on(“/configArgs”, configSettings);
  2. Function "configSettings" to include 2.1 Parameters passed as: http:///configArgs?param1=value1&param2&value2&param3=value3 2.2 read as server.args("param1")