@qualithm/device - v0.12.2
    Preparing search index...

    Function claimDevice

    • Exchange a claim code for a persistable device credential.

      Parameters

      • provisioningUrl: string

        Base URL of the provisioning API.

      • request: ClaimRequest

        The claim code and optional device name.

      Returns Promise<DeviceCredential>

      ClaimError when the endpoint is unreachable or rejects the code.