edilkamin
    Preparing search index...

    Variable editDevice

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

    Type Declaration

      • (
            jwtToken: string,
            macAddress: string,
            deviceName?: string,
            deviceRoom?: string,
        ): Promise<DeviceAssociationResponse>
      • Updates a device's name and room.

        Parameters

        • jwtToken: string

          The JWT token for authentication.

        • macAddress: string

          The MAC address of the device (colons optional).

        • deviceName: string = ""

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

        • deviceRoom: string = ""

          New room for the device (default: empty string).

        Returns Promise<DeviceAssociationResponse>

        • A promise that resolves to the update response.