It would be helpful to see an example of this
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 == "read" then gosub [readall.pin]
print "DOne with retrn code"
msgreturn MyReturnMsg
wait
[po.pin]
po pinNo pinStatus
MyReturnMsg = "good"
return
[readall.pin]
read{pin1}{pin1s}
if pin1s==0 then print "PIN1 ON"
else print "PIN1 OFF"
return
Note I added 1 pin... just to test out a possible way of doing so...
if I type http://192.168.x.x/msg?action=read
Not a valid msg error displays
How does one properly read the status of the pin being a 0/1?
I would like a webpage actually on load to read all pins and tell me if they are ON or OFF more or less and then handle writing high or low via URL the writing looks fine as per the example but I am unsure of how to read pins with basic?
Where I buy my ESP8266 boards from... (Banggood)