@espressif/rainmaker-base-cdf
    Preparing search index...

    ESPCDFProvisioningDevice

    Unified provisioning device entity that wraps SDK-specific device implementations. Provides a consistent interface for device provisioning operations across different SDKs.

    Implements

    Index

    Constructors

    Properties

    _raw?: any

    Raw device data from SDK

    advertisementData?: { [key: string]: any }[]

    BLE advertisement data (for BLE devices)

    capabilities?: string[]

    Device capabilities

    connected?: boolean

    Connection status

    name: string

    Device name/identifier

    Provisioning device operations

    security: number

    Security level

    transport: string

    Transport type (BLE or SoftAP)

    username?: string

    Username for device connection

    versionInfo?: { [key: string]: any }[]

    Device version information — array of version objects as returned by the SDK

    Methods

    • Indicates whether this device is in "on-network" provisioning mode (already on the user's Wi-Fi, talked to via LAN HTTP at the chal-resp endpoint). Same dispatch pattern as checkChallengeResponseSupport — useProvision calls this to decide which stage list to render and which addDevice variant to invoke.

      Defaults to false for adaptors that do not implement the operation, so existing BLE / SoftAP transformers don't need any change.

      Returns Promise<boolean>

      true for mDNS-discovered on-network devices, else false.

    • Clear the device's Wi-Fi state over the open provisioning session.

      Only the Wi-Fi credentials are cleared — the user-node association survives, which is what lets retryNetworkCredentials resume rather than re-provision from scratch.

      Resolves false when the adaptor does not implement it, so callers can treat "not supported" and "device refused" the same way.

      Returns Promise<boolean>

      true when the device acknowledged the reset.

    • Re-send Wi-Fi credentials after resetWifiStatus, resuming the flow the first attempt started instead of repeating its association.

      Parameters

      • ssid: string

        Wi-Fi SSID, unchanged from the first attempt.

      • password: string

        The corrected Wi-Fi password.

      • OptionalonProgress: ESPCDFProvisionProgressCallback

        Progress callback; emits the same messages as provision.

      Returns Promise<void>

      When the adaptor cannot resume a provisioning flow.

    • Set network credentials directly (for challenge-response flow)

      Parameters

      • ssid: string
      • password: string

      Returns Promise<number>

    • Start assisted claiming

      Parameters

      • OptionalonProgress: Function
      • OptionalclaimCapability: string

      Returns Promise<void>