On macOS, is there a way, while the device is physically plugged-in to power:
1. Read the current battery charge
2. Set a maximum charging limit
3. Allow the battery to discharge, when it is above the set maximum charging limit
Ideally all directly within Lazarus, without having to use command line tools (if possible at all)?
I figure the hardest would be #3 above?