chargerconnected

Syntax:

[boolean] sysinfo.chargerconnected;

Description:

This is a read-only property that returns a Boolean value indicating the status of the changer.

If the charger is connected, the returned value is 1; otherwise it is 0.

For more general information on power consumption and widgets, see Saving battery time.

Example code:

See the example code in onchargerconnected.