Then I opened a router port and dedicated to an ip that gave the ESP. Then I do access via smarfone (4G internet) and access to the page ESPbasic he already is to run automatically program.bas, so I send command and esp does not respond !! I wonder why?
Here the code:
let pinNo = 2
let pinstat = 0
print "porta"
textbox pinNo
print "status"
textbox pinstat
button "aciona",[SetThePin]
button "exit",[TestExit]
wait
[SetThePin]
io(po,pinNo,pinstat)
if pinstat = 0 then
pinstat = 1
else
pinstat = 0
end if
wait
[TestExit]
end