Optional
advertisementOptional
capabilitiesOptional
connectedOptional
usernameOptional
versionA promise that resolves to the provisioning response.
Disconnect the device.
Gets the capabilities of the device.
A promise that resolves to an array of capabilities.
Gets the version info of the device.
A promise that resolves to an object containing version info.
Initialize session with the device.
A promise that resolves to a boolean indicating whether the session was successfully initialized.
Initiates a user node mapping request.
Optional
requestBody: Record<string, any>The request body for the user node mapping.
A promise that resolves to the response from the API.
Provisions the device with the given Wi-Fi credentials.
The SSID of the Wi-Fi network.
The passphrase of the Wi-Fi network.
A callback function to report progress.
Optional
groupId: string(optional) - The unique identifier of the group to which the node should be added.
Scans for available Wi-Fi networks.
A promise that resolves to an array of Wi-Fi networks.
Sends data to the device.
The endpoint to send data to.
The data to send.
A promise that resolves to the response data.
Sets the network credentials for the device.
The SSID of the Wi-Fi network.
The passphrase of the Wi-Fi network.
Sets the proof of possession for the device.
The proof of possession string.
A promise that resolves to a boolean indicating whether the proof of possession was successfully set.
Starts the assisted claiming process.
Verifies the mapping between a user and a node.
Optional
requestBody: Record<string, any>The request body for the user node mapping verification.
A promise that resolves to the response from the API.
Connects to the device.