mibsdk
Toggle table of contents
java
Target filter
java
Switch theme
Search in API
Skip to content
mibsdk
mibsdk
/
mibsdk.api.net
/
WifiStatus
Wifi
Status
class
WifiStatus
(
source
)
The unit's Wi-Fi uplink state, as last reported by the car. Obtain it from
status
.
Members
Constructors
Wifi
Status
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
CONNECTED
Link copied to clipboard
val
CONNECTED
:
Int
=
2
Associated and holding an address; the uplink is usable.
CONNECTING
Link copied to clipboard
val
CONNECTING
:
Int
=
1
Association or DHCP is in progress.
DISCONNECTED
Link copied to clipboard
val
DISCONNECTED
:
Int
=
3
Not associated, and no connection is in progress.
FAILED
Link copied to clipboard
val
FAILED
:
Int
=
4
The last attempt failed;
error
says why.
OFF
Link copied to clipboard
val
OFF
:
Int
=
0
Wi-Fi is switched off for the internet uplink.
Functions
bssid
Link copied to clipboard
open
fun
bssid
(
)
:
String
The access point's BSSID; empty when unknown.
connected
Link copied to clipboard
open
fun
connected
(
)
:
Boolean
True when
state
is
CONNECTED
.
dns
Link copied to clipboard
open
fun
dns
(
)
:
String
Comma-separated live DNS servers; empty when unknown.
error
Link copied to clipboard
open
fun
error
(
)
:
String
A short reason for
FAILED
; empty otherwise.
gateway
Link copied to clipboard
open
fun
gateway
(
)
:
String
The live default gateway; empty until an address is set.
ipv4
Link copied to clipboard
open
fun
ipv4
(
)
:
String
The IPv4 address on the Wi-Fi client interface; empty until DHCP completes.
netmask
Link copied to clipboard
open
fun
netmask
(
)
:
String
The live IPv4 netmask; empty until an address is set.
signal
Link copied to clipboard
open
fun
signal
(
)
:
Int
Signal strength, 0..100; 0 when unknown.
ssid
Link copied to clipboard
open
fun
ssid
(
)
:
String
The SSID the unit is associated with (or tried last); empty when none.
state
Link copied to clipboard
open
fun
state
(
)
:
Int
OFF
,
CONNECTING
,
CONNECTED
,
DISCONNECTED
or
FAILED
.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String