Re: Thermostat
Posted: Thu Jun 09, 2016 7:59 pm
SKIP TLDR
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
forlotto wrote:ok talked to mike I forgot about this... there is a little fix for issues like this called encompasing data
take your code instead of using ' use " and encompass data like so
using | | symbols
for instance
wprint | <body bgcolor="blue"> |
memclear
SERIALPRINTLN "restart page"
cls
curr = 0
setp = 30
stat
Print "ESP8266 WiFi Thermostat "
print "Target temp="
textbox setp
print "CurrTemp="
textbox curr
print "Heater="
textbox stat
print
button "Exit", [quit]
timer 5000, [refresh]
wait
[refresh]
curr = temp(0)
SERIALPRINTLN curr
if curr < setp then
io(po,16,1)
stat = "On"
else
io(po,16,0)
stat = "Off"
end if
Wait
[quit]
timer 0
wprint "<a href='/'>Menu</a>"
end