chargelevel

Syntax:

[int] sysinfo.chargelevel;

Description:

This is a read-only property that returns an integer indicating the current battery level.

The returned value is in the range of 0 to 100 as a percentage of the maximum battery level.

Example code:

See the example code in onchargelevel.