I was thinking of making a quick push button wifi board. Push a button, it turns on, sends a message over wifi and shuts off completely. No power loss in sleep mode.
My idea is the push button connects GND to Arduino or ESP8266. Then in the arduino code during the setup() an NPN transistor is used to connect GND. When I release the button, the switch is disengaged, then the code will run and at the end of the code it will digitalWrite(X, LOW); and shut off the NPN, thus closing all GND to the ESP8266 or Arduino.
Is this a viable solution?