WifiStatus

The unit's Wi-Fi uplink state, as last reported by the car. Obtain it from status.

Constructors

Link copied to clipboard
constructor(state: Int, ssid: String, bssid: String, ipv4: String, signal: Int, error: String)
constructor(state: Int, ssid: String, bssid: String, ipv4: String, signal: Int, error: String, netmask: String, gateway: String, dns: String)

Properties

Link copied to clipboard
val CONNECTED: Int = 2
Associated and holding an address; the uplink is usable.
Link copied to clipboard
val CONNECTING: Int = 1
Association or DHCP is in progress.
Link copied to clipboard
val DISCONNECTED: Int = 3
Not associated, and no connection is in progress.
Link copied to clipboard
val FAILED: Int = 4
The last attempt failed; error says why.
Link copied to clipboard
val OFF: Int = 0
Wi-Fi is switched off for the internet uplink.

Functions

Link copied to clipboard
open fun bssid(): String
The access point's BSSID; empty when unknown.
Link copied to clipboard
open fun connected(): Boolean
True when state is CONNECTED.
Link copied to clipboard
open fun dns(): String
Comma-separated live DNS servers; empty when unknown.
Link copied to clipboard
open fun error(): String
A short reason for FAILED; empty otherwise.
Link copied to clipboard
open fun gateway(): String
The live default gateway; empty until an address is set.
Link copied to clipboard
open fun ipv4(): String
The IPv4 address on the Wi-Fi client interface; empty until DHCP completes.
Link copied to clipboard
open fun netmask(): String
The live IPv4 netmask; empty until an address is set.
Link copied to clipboard
open fun signal(): Int
Signal strength, 0..100; 0 when unknown.
Link copied to clipboard
open fun ssid(): String
The SSID the unit is associated with (or tried last); empty when none.
Link copied to clipboard
Link copied to clipboard
open fun toString(): String