Connect to the specified Wi-Fi network
Connects to a Wi-Fi network using the provided SSID and password. If the connection is not established within 10 seconds, the request fails with a timeout error.
- application/json
Request Body
- ssid string required
Possible values:
non-emptyand<= 32 charactersThe name of the access point to connect to. Can contain up to 32 ASCII characters or about 16 non-ASCII characters.
- password string
Possible values:
<= 63 charactersThe password for the access point. Can contain up to 63 ASCII characters or about 31 non-ASCII characters.
Responses
- 200
- 400
- 401
- 404
- 503
OK
- Missed JSON body
- Missed network — requested network not found in scan results
- Failed to add network — network configuration was rejected by the system
- Network authentication failed — wrong password
- Failed to create connection by timeout — no connection established within the 10 second timeout
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error information
{
"error": "Wrong JSON body"
}
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
- Wi-Fi is disabled
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error information
{
"error": "Wrong JSON body"
}
Loading...