Moderator: Mmiscool
The web page will refresh every 5 seconds and prompt on the serial every 5 seconds.
Please note that serial is blocking so you should respond to the serial with the temperature after each prompt.
The serial works on 9600 baud so connect to it using your terminal and see what it spits out to format your pic code accordingly.
You should also update to the latest version as I had to do a bug fix for this code to work.
I just posted the new version so if you go to the download page it will be up to date.
bla = 0
timer 5000 [update.Values]
wprint |<meta http-equiv="refresh" content="10; url=./input" />|
wprint htmlvar(bla)
button "this is a test" [test.1]
wait
[test.1]
wprint "test 1 was clicked"
wait
[update.Values]
input "enter value" bla
wait
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com
bla = 0 --- ok thats the var the serial input goes into ,, will it contain crlf ??
timer 5000 [update.values] --- when 5 sec passed goto [update.values]
--- does code continue to run or wait here for 5 sec ????
wprint <meta>~~~~~~~~~~~~url=./input /> --- What does url=./input / do?????
wprint htmlvar(bla) --- this apparently is continuation of the W page
--- how would I place this at a different location in W page ??
--- can this easily be a JAVA VAR ??????? that the W page can perform actions on
button "this is a test" [test.1] --- W page continuation jump to [ test 1] when button clicked ??????
wait --- wait here until button is clicked ???????
[test.1]
Wprint "test 1 was clicked" --- ??? this appears on W page @ next refresh
wait --- ??? what is this waiting on ?????
[update.values]
input "enter value" bla --- receive serial input , save in bla var
wait --- ??? wait crlf on serial input ???
????? I guess this all repeats ???????