edilkamin
    Preparing search index...

    Variable setPower

    setPower: (
        jwtToken: string,
        macAddress: string,
        value: number,
    ) => Promise<unknown>

    Type Declaration

      • (jwtToken: string, macAddress: string, value: number): Promise<unknown>
      • Sends a command to set the power state of a device.

        Parameters

        • jwtToken: string

          The JWT token for authentication.

        • macAddress: string

          The MAC address of the device.

        • value: number

          The desired power state (1 for ON, 0 for OFF).

        Returns Promise<unknown>

        • A promise that resolves to the command response.