| Availability | All terminals | 
| Description | Returns the battery level of the device in %. | 
| Syntax | unsigned int GetBatteryLevel( void ); | 
| Arguments | None | 
| Returns | The output level of the battery as an unsigned integer value between 0 .. 100. The function only returns 100% when when the device is connected to an external power source and charging has completed. | 
| Remarks | |
| Example | 
#include <stdio.h> #include <stdlib.h> #include "lib.h" void main( void ) { printf("\nBattery level:"); for(;;) { printf("%d %%", GetBatteryLevel() ); Sound( TCLICK, VMEDIUM, SHIGH, 0); GoodReadLed( GREEN, TCLICK); Delay(5*50); } }  |