@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 checkChallengeResponseSupportuseProvision 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.

    • 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>