Function setPower

  • 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<AxiosResponse<any, any>>

    • A promise that resolves to the command response.