Code help wanted for ESP-01 + Arduino IDE project.
Posted: Sat Sep 26, 2015 4:35 pm
Hi all,
I'm trying to program my ESP-01 using the arduino IDE. I'm trying to make a program makes the ESP-01 module a standalone access point... When my phone device connects with the correct WiFi password, the module would then toggle a GPIO pin on for 2 seconds, then off. When my phone disconnects, it should toggle the same GPIO pin on for 2 seconds, then toggle it off.
The circuit would just be a ESP-01, a power source, and a optocoupler/optoisolator connected to a GPIO pin.
I don't have the faintest clue how to code this. I've tried many iterations of my own adaptations of various example code, and I can't seem to get it to work.
I'm so lost by the code, so it would be more optimal if you just tell me what the code should be.
I'm trying to program my ESP-01 using the arduino IDE. I'm trying to make a program makes the ESP-01 module a standalone access point... When my phone device connects with the correct WiFi password, the module would then toggle a GPIO pin on for 2 seconds, then off. When my phone disconnects, it should toggle the same GPIO pin on for 2 seconds, then toggle it off.
The circuit would just be a ESP-01, a power source, and a optocoupler/optoisolator connected to a GPIO pin.
I don't have the faintest clue how to code this. I've tried many iterations of my own adaptations of various example code, and I can't seem to get it to work.
I'm so lost by the code, so it would be more optimal if you just tell me what the code should be.