Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.67 KB

miIO-wifi_assoc_state.md

File metadata and controls

52 lines (42 loc) · 1.67 KB

Mi IO Generic - Wifi Status

Gets wifi details and statistics.

Get Wifi status

Command

Key Value Comment
method "miIO.wifi_assoc_state"
id id Random integer which is returned in the response used to link request and response.

Example

{
    "method": "miIO.wifi_assoc_state",
    "id": 37
}

Response

Key Example Description
id 37 Returned ID from request
code 0 Unknown where this is used for
message ok
result Response to the command
state ONLINE
auth_fail_count 0 Authentication failed
conn_success_count 1 connection success count
conn_fail_count 0 connection fail count
dhcp_fail_count 0 dhcp request failed count

Example

{
    "id": 37,
    "code": 0,
    "message": "ok",
    "result": {
        "state": "ONLINE",
        "auth_fail_count": 0,
        "conn_success_count": 1,
        "conn_fail_count": 0,
        "dhcp_fail_count": 0
    }
}