乐鑫技术交流
直播中

张鹏

7年用户 1133经验值
私信 关注
[问答]

制作了简单的无线开关,通过互联网的按钮不起作用怎么解决?

嗨,我制作了简单的无线开关。所有在本地网络中都运行良好。通过互联网我看到界面,但按钮不起作用。你能给我建议吗?
cls  
let pinNo = 0
timer 300, [refresh]
wprint \"Led Lamp Kitchen & Temperature\"
wprint \"
\"
wprint \"

\"
button \" ON \", [SetThePinON]
wprint \" \"
button \" OFF \", [SetThePinOFF]
wprint \" \"
button \"Refresh\", [TestExit]
wprint \"

\"
wprint \"Relay status:\"
wprint \" \"
textbox pinStat
wprint \"
\"
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 \"\"

[refresh]
curr = round(temp(0))
Wait

更多回帖

发帖
×
20
完善资料,
赚取积分