(deprecated) Device.getWifiIPAddress()
Overview
Gets the current WiFi local IP address.
Added in version 1.2.109
Deprecated. Use Network.getWifiIPAddress().
Format
var address = Device.getWifiIPAddress();
Parameter | Description | Type | Required | Notes |
---|---|---|---|---|
address | A string containing the IP address of the WiFi adapter. | String | Return | May return undefined or null if unable to determine IP address. |
Example
Copy
/* Display a toast message of the IP Address.
*/
var address = Device.getWifiIPAddress();
if(address) {
View.toast('IP Address: ' + address, true);
}