Having trouble seeing how to integrate several snippet examples into a larger program.
Having trouble seeing how to integrate several snippet examples into a larger program.
Explore... Chat... Share...
Moderator: Mmiscool
wget "http://172.16.0.184/msg?pin=2&stat=1&action=po" -q -O -
msgbranch [mybranch]
print "You can send msgs to the esp and do things based on accessing a URL"
wait
[mybranch]
MyReturnMsg = "Not a valid msg received"
msgget "pin" pinNo
msgget "stat" pinStatus
msgget "action" pinAction
if pinAction == "po" then gosub [po.pin]
if pinAction == "pi" then gosub [pi.pin]
if pinAction == "pwo" then gosub [pwo.pin]
if pinAction == "pwi" then gosub [pwi.pin]
if pinAction == "ai" then gosub [ai.pin]
print "DOne with retrn code"
msgreturn MyReturnMsg
wait
[po.pin]
po pinNo pinStatus
MyReturnMsg = "good"
return
[pi.pin]
pi pinNo MyReturnMsg
return
[pwo.pin]
pwo pinNo pinStatus
MyReturnMsg = "good"
return
[pi.pin]
pwi pinNo MyReturnMsg
return
[ai.pin]
ai MyReturnMsg
return
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]