User Guide

Table Of Contents
146 Flash Lite Specific Language Elements
GetPowerSource
Availability
Flash Lite 1.1.
Description
Returns a value that indicates whether the power source is currently supplied from a battery or
from an external power source.
Example
The following example sets the myPower variable to indicate the power source, or to -1 if it
was unable to do so:
myPower = fscommand2("GetPowerSource");
GetSignalLevel
Availability
Flash Lite 1.1.
Description
Returns the current signal strength as a numeric value.
Example
The following example assigns the signal level value to the sigLevel variable:
sigLevel = fscommand2("GetSignalLevel");
Command Parameters Value returned
"GetPowerSource"
None. -1: Not supported.
0: Device is operating on battery power.
1: Device is operating on an external
power source.
Command Parameters Value returned
"GetSignalLevel"
None. -1: Not supported.
Other numeric values: The current signal level, ranging
from 0 to the maximum value returned by
GetMaxSignalLevel.