Network.getWifiRssi()
Overview
Gets the current Wi-Fi received signal strength. It may take up to 2 seconds to retrieve this data.
Added in version 2.1.11
Format
var signalStrength = Network.getWifiRssi();
Parameter | Description | Type | Required | Notes |
---|---|---|---|---|
signalStrength |
The received signal strength of the current WiFi connection in dBm. |
Integer | Return | Normal values between -30 and -90, with better values being close to 0. May return 0 if unable to determine signal strength. |
Example
Copy
/* Display a toast message of the current signal strength.
*/
var signalStrength = Network.getWifiRssi();
if(signalStrength < 0) {
View.toast('Signal strength: ' + signalStrength, true);
}