The bound listening address once started, otherwise null.
The current lifecycle state.
Bring up the setup access point (when a controller is supplied) and start serving the claim endpoint. Resolves with the bound address.
ProvisioningError when the device is already provisioned, the server is already running, or the access point or listener fails to start.
Stop serving and tear down the setup access point. Safe to call when not running. After a plain stop (no claim), start may be called again to restart onboarding.
The device-side soft-AP provisioning server.
Serves the claim exchange on the device's setup network while no credential is stored, and only then: construction with an already-populated store fails at ProvisioningServer.start, and a successful claim stops the server before Device.connect opens the gateway session.
Example