Network.getWifiIPAddress()

Overview

Gets the current WiFi local IP address.

Added in version 2.0.0

Format

var address = Network.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 = Network.getWifiIPAddress();
if(address) {
    View.toast('IP Address: ' + address, true);
}