Hi! What you're planning sounds fine - the nice thing about microcontrollers is they really don't care if they lose power halfway through something (although you should avoid writing to their flash memory).
The only gotcha is that WiFi really does burn an awful lot of power when on, and it takes a few seconds to connect while using all that power - so you may struggle with power usage unless you have a good supercapacitor.
If you don't need WiFi then I'd suggest Bluetooth LE - it's way lower power, and you can realistically run off harvested energy quite easily.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi! What you're planning sounds fine - the nice thing about microcontrollers is they really don't care if they lose power halfway through something (although you should avoid writing to their flash memory).
The only gotcha is that WiFi really does burn an awful lot of power when on, and it takes a few seconds to connect while using all that power - so you may struggle with power usage unless you have a good supercapacitor.
If you don't need WiFi then I'd suggest Bluetooth LE - it's way lower power, and you can realistically run off harvested energy quite easily.