This is the same thing it does not work it gets fixed at high and never changes even if the status changes to low.
Few other bugs I would like to mention:
1. Forum is stuck on stupid MMISCOOL's Basic Interpreter link is dead SQL error (I may have used up all your bandwidth lol!)
2. Documentation for onload is incorrect following your syntax for documentation it states the following.
Onload {routine} so according yo your syntax for the documentation people would understand this as: Onload routine.
Onload [{routine}] would be the correct way to document it then this way it'd look like Onload [routine]
Here is the code I am using:
ONLOAD [testpins]
wprint htmlvar(statusofpin)
[testpins]
if io(pi,D3) = 1 then statusofpin = "<p>Pin high</p>" else statusofpin = "<p>pin low</p>"
msgbranch [mybranch]
wprint "SEVER STATUS 200 OK"
[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 == "s" then gosub [read.it]
print "DOne with retrn code"
msgreturn MyReturnMsg
wait
[po.pin]
po pinNo pinStatus
MyReturnMsg = "pin switched"
return
Things to note for the device:
1. I need to have a readout of all pins dynamic like the vars page.
2. I need to handle the output turning them off and on via url.
This is all I need to accomplish I have tried every angel nearly to accomplish this.
Where I buy my ESP8266 boards from... (Banggood)