ESP8266 lithium charging breakout board antics https://jjssoftware.github.io/esp8266-configurable-power-management/