I started a new project with an ESP8266-01 module. I want to use it as stand-alone circuit to send an Email at the press of a button.
The wiring is:
- VCC - 3.3v VCC
- CH_PD - 3.3v VCC
- GND - GND
- GPIO_2 - Push down button (internal pullup)
I've the sketch (Arduino IDE), I've upload it and it essentially works. However:
- If I call the
sendEmail();
method inside thevoid setup(){}
, it works like a charm. - If I add an push down button on Pin #2 (GPIO_2) it only works if I previously have removed VCC from the CH_PD pin and reattached it again shortly after.
Now, I would bet I read something regarding (or similar) this situation a couple of days back, but I am unable to find it again, now that I need it.
Is there a solution for this or am I missing something?
Any help will be greatly appreciate it!
Thanks in advance!