I just got an ESP8266 (dunno what specific version) and have been playing with it a little bit. I also got a ESP-01S relay board to plug it in, but I'm facing a weird problem.
I'm trying to make work the "ESP8266_Control_Relay" sample that can be found here: https://www.instructables.com/id/ESP010 ... -TUTORIAL/
I upload the code and it runs fine for the first time, I clic the ON or OFF buttons on the web server and they work.
However, that only works right after uploading the program to the board. If I disconnect and connect it again, it doesn't work.
Also, if I plug the board in without connecting the GPIO0 pin to the ESP-01S and connect it after it has booted, it works.
Same happens with the program I wrote from scrath, so the problem may not be with the program as it happes with 2 different ones. You can see the sample in the URL posted.
Basically, I think that if you connect the board with GPIO0 connected from the start, it doesn't work unless you just uploaded the code. If you connect it afterwards, it doesn't.
I tried putting the pinMode(0, OUTPUT); line in many different places, including in the loop for just the first itteration, but it doesn't make any difference.
Can anyone shed some light, please? I would really appreciate it.
Thank you in advanced.