hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#1
Could anyone point me to the library that would allow me to read the status of the battery on N900 (using c++) ?

Thanks!
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi,

you could have a look at the hal documentation, and the libhal API.

On device there is the command lshal, where you can get information about the device states. The battery namespace of the specification you will find here. You might be interested in the "battery.charge_level.percentage".

Hope this helped,

Cheers Daniel
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#3
Thanks! I will take a look at that.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:58.