signalbars

Syntax:

[int] sysinfo.signalbars;

Description:

This is a read-only property that returns an integer indicating the network signal strength.

The returned value is in the range of 0 to 7, where 0 represents no signal and 7 represents the maximum signal strength.

For more information on network connection related aspects that you should take into account in your widget, see Dealing with network issues.

Example code:

// Retrieve the current signal strength
var signalStrength = sysinfo.signalbars;
if (signalStrength == 0)
alert("No network signal!");