Get current Wi-Fi settings
Returns Wi-Fi interface settings. If DHCP is enabled, the response will contain settings obtained from the DHCP server. If Wi-Fi is disabled or not currently connected, the response contains the last saved Wi-Fi settings instead.
Responses
- 200
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- dhcp boolean
Determines whether the DHCP is enabled
- ip_address ipv4
Device IP address
- mask ipv4
Network mask
- gateway ipv4
Network gateway
- dns ipv4
Network DNS server
{
"dhcp": false,
"ip_address": "192.168.1.96",
"mask": "255.255.255.0",
"gateway": "192.168.1.1",
"dns": "8.8.8.8"
}
{
"dhcp": false,
"ip_address": "192.168.3.96",
"mask": "255.255.255.0",
"gateway": "192.168.1.1",
"dns": "8.8.8.8"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error information
{
"error": "Log In"
}
{
"error": "Log In"
}
This function is only available with Wi-Fi module
Loading...