Skip to content

Open or close Wi-Fi setup

POST
/api/v1/improv
curl --request POST \
--url http://pwrman.local/api/v1/improv \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "open": true }'

{"open": true} opens Wi-Fi setup for 10 minutes; {"open": false} closes it.

Media typeapplication/json
object
open
required
boolean

Example

{
"open": true
}

Done.

Media typeapplication/json
object
ok
required
boolean
improv
required

Wi-Fi setup over Bluetooth.

string
Allowed values: off advertising connected provisioning provisioned

Example

{
"ok": true,
"improv": "advertising"
}

The body has no open boolean.

Media typeapplication/json
object
error
required

Why the request was refused, in words.

string

Example generated

{
"error": "example"
}

The token is missing or wrong, or no token is set yet.

Media typeapplication/json
object
error
required

Why the request was refused, in words.

string

Examples

{
"error": "bearer token required"
}

This controller has no Wi-Fi.

Media typeapplication/json
object
error
required

Why the request was refused, in words.

string

Example

{
"error": "Wi-Fi setup is not available on this controller"
}

USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.