OptionalprovisionWhat a completed association produced, kept so retryNetworkCredentials
can resume the flow instead of repeating it. Set once verification
succeeds; undefined until then.
Disconnects from the ESP device.
A promise that resolves with the API response when disconnection is complete.
Initiates a user node mapping request.
OptionalrequestBody: Record<string, unknown>The request body for the user node mapping.
A promise that resolves to the response from the API.
Provisions the device with WiFi credentials using challenge-response flow.
The WiFi network SSID.
The WiFi network password.
A callback function to report progress.
The group ID for node association.
OptionalprovisionType: stringThe provisioning flow type. Default: ProvisionType.CHAL_RESP.
Optionaloptions: ProvisionOptionsOptional step 6 (online wait via MQTT).
A promise that resolves with the node ID when provisioning is complete.
Asks the device to clear its Wi-Fi state over the open provisioning session.
Sent on the network-control endpoint, so it needs an established session and
leaves the user-node association intact — only Wi-Fi credentials are cleared.
That is what makes retryNetworkCredentials possible after a wrong password,
instead of making the user factory reset the board.
A promise resolving to true when the device acknowledged the reset.
Re-sends Wi-Fi credentials after resetWifiStatus, resuming the flow the
first attempt started rather than repeating its association.
Sending credentials alone is not enough: the online wait and the success report follow them and need the node id the association produced, which only this SDK holds.
The SSID, unchanged from the first attempt.
The corrected Wi-Fi password.
Progress callback; emits the same messages as provision.
A promise resolving to the node id.
Scans for available WiFi networks using the device's provisioning adapter.
A promise that resolves to an array of available WiFi networks.
Sets the network credentials for the device.
The SSID of the Wi-Fi network.
The passphrase of the Wi-Fi network.
A promise that resolves to the provisioning status.
Starts the assisted claiming process.
Flow:
POST /v1/claim/initiate)POST /v1/claim/verify)OptionalonProgress: ESPClaimProgressCallbackCallback for progress updates
OptionalclaimCapability: CAMERA_CLAIMOptional capability, e.g. ClaimCapabilities.CAMERA_CLAIM
Promise that resolves when claiming is complete
Verifies the mapping between a user and a node.
The ID of the group.
The node association request ID.
OptionalrequestBody: Record<string, unknown>The request body for the user node mapping verification.
A promise that resolves to the response from the API.
Represents an ESP device for provisioning and local communication. Provides methods for device discovery and WiFi provisioning.