Anyway, I need to power on and off the device using a pushbutton (because esp8266 board is battery-powered) but I don't know how to make this possible. I mean:
1) How should pushbutton be wired to Wemos d1 mini (or battery shield)? Which pins?
2) Which type of code should I write in order to make that working?
I've got no information until now, so I ask for help in this forum. Waiting for a reply, thanks.