My current project sends me an email when it sees the percentage of battery left has fallen below a certain level. If I have the Thing Plus C connected to my computer via USB and it is charging the LiPo battery, I don’t need it to do this. Is there a way in software that I can detect any of the following:
Thing is currently connected to a computer via USB.
I had somehow missed the change rate method. That will tell me if its charging or not. Thanks!
I also see that there is a function for putting the fuel gauge IC to sleep. Does this need to be done if I’m putting the Thing Plus C to sleep, or does that effectively cut power to that IC as well?
The Fuel Gauge is powered directly by the battery. It draws very little current: 23 micro-Amps when active; 3 micro-Amps in hibernate. Putting it into hibernation may help extend your battery life, but the ESP32 current draw will dominate.