button problem through internet
Posted: Mon Nov 13, 2017 7:07 am
Hi I made simple wireless switch. All working very good in local network. Through internet I see interface, but the buttons not working. Can you advice me? This is my code:
Code: Select all
cls
let pinNo = 0
Timer 300, [refresh]
wprint "Led Lamp Kitchen & Temperature"
wprint "<hr width=350 align=left>"
wprint "<p>"
button " ON ", [SetThePinON]
wprint " "
button " OFF ", [SetThePinOFF]
wprint " "
button "Refresh", [TestExit]
wprint "<p>"
wprint "Relay status:"
wprint "<width=30> "
textbox pinStat
wprint "<br>"
wprint "Temperature:"
textbox curr
wait
[SetThePinON]
let pinStat = "On"
io(po,pinNo,1)
wait
[SetThePinOFF]
let pinStat = "Off"
io(po,pinNo,0)
wait
[TestExit]
wprint "<a href=''></a>"
[refresh]
curr = round(temp(0))
Wait