I will change this portion in the example...
OTHER than that do you care to test it in AP mode and tell me what your results are? What happens to me is the esp and the relay reboots.
I know that the hardware itself works because it works direct with a button. But as soon as I add in password protection things get ugly and I don't know if it is the way that I am expressing my code or some side effect from the latest iteration of basic.
I would love to get down to the bottom of this because the end result may leave me stranded if I don't in a bad way.
HERE IS THE CODE FOR REFERENCE
cls
pwda = "cool"
passwordbox pwdb
Button "ON" [check]
wait
[check]
if pwdb == pwda then [goforit] else wprint "wrong!!!"
wait
[goforit]
po D4 0
po D5 0
delay 1000
po D4 1
po D4 1
pwdb = ""
wait
From what I can tell... It seems like it loses all of the information stored in the variable after you push the button. Errr IDK something is buggy and I can't put my finger on it either something with comparisons in the if statement or something...
You don't need to add semicolons or anything like that I hope at the end of the line I would sure love to nip this one in the butt. Anyhow this is way on the other side of my home away from my router so doubt I'll be connecting to my wifi until I install a bridge.
hrmmmm maybe I need to try a different approach
Aha I see something I did not add actually in my code maybe this is the problem... Will try and post back....
The word " let "
Where I buy my ESP8266 boards from... (Banggood)