Re: ESP8266 with easy webconfig
Posted: Mon Sep 07, 2015 6:08 pm
Figured out what the form needs to look like after playing with it for awhile. For those interested, my example.h code showing the added HTML form and its processing is at pastebin.com: http://pastebin.com/FGKfqKwe with highlighted sections.
In short, I added a form tag with a button inside, formmethod=post, formaction=example.html (back to same page), the name of my button (to be processed later), and a value of 90 (sent to servo later). Then, near the bottom, inside processExample, I have the code to retrieve the form value and send it to the servo.
Mostly this works, but now I have a few other mysteries to solve, such as the servo moving every 3 minutes and 10 seconds by itself, without any button pushes on my part. This seems to be related to a message on the serial monitor which reads:
"Admin Mode disabled!
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Starting ES8266
Reading Configuration
Configuration Found!
Configuring Wifi
HTTP server started"
Does anyone know what this means, or why this is happening? It kinda looks like a server restart...
In short, I added a form tag with a button inside, formmethod=post, formaction=example.html (back to same page), the name of my button (to be processed later), and a value of 90 (sent to servo later). Then, near the bottom, inside processExample, I have the code to retrieve the form value and send it to the servo.
Mostly this works, but now I have a few other mysteries to solve, such as the servo moving every 3 minutes and 10 seconds by itself, without any button pushes on my part. This seems to be related to a message on the serial monitor which reads:
"Admin Mode disabled!
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Starting ES8266
Reading Configuration
Configuration Found!
Configuring Wifi
HTTP server started"
Does anyone know what this means, or why this is happening? It kinda looks like a server restart...