Function setPowerOn

  • Turns a device ON by setting its power state.

    Parameters

    • jwtToken: string

      The JWT token for authentication.

    • macAddress: string

      The MAC address of the device.

    Returns Promise<AxiosResponse<any, any>>

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