edilkamin
    Preparing search index...

    Variable registerDevice

    registerDevice: (
        jwtToken: string,
        macAddress: string,
        serialNumber: string,
        deviceName?: string,
        deviceRoom?: string,
    ) => Promise<DeviceAssociationResponse>

    Type Declaration

      • (
            jwtToken: string,
            macAddress: string,
            serialNumber: string,
            deviceName?: string,
            deviceRoom?: string,
        ): Promise<DeviceAssociationResponse>
      • Registers a device with the user's account. This must be called before other device operations will work on the new API.

        Parameters

        • jwtToken: string

          The JWT token for authentication.

        • macAddress: string

          The MAC address of the device (colons optional).

        • serialNumber: string

          The device serial number.

        • deviceName: string = ""

          User-friendly name for the device (default: empty string).

        • deviceRoom: string = ""

          Room name for the device (default: empty string).

        Returns Promise<DeviceAssociationResponse>

        • A promise that resolves to the registration response.