edilkamin
    Preparing search index...

    Variable setPowerOff

    setPowerOff: (jwtToken: string, macAddress: string) => Promise<unknown>

    Type Declaration

      • (jwtToken: string, macAddress: string): Promise<unknown>
      • Turns a device OFF by setting its power state.

        Parameters

        • jwtToken: string

          The JWT token for authentication.

        • macAddress: string

          The MAC address of the device.

        Returns Promise<unknown>

        • A promise that resolves to the command response.
        const response = await api.setPowerOff(jwtToken, macAddress);
        console.log(response);