![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <PeripheralEndpointPowerControllerHandler.h>
Static Public Member Functions | |
static std::shared_ptr< PeripheralEndpointPowerControllerHandler > | create (const std::string &endpointName) |
Additional Inherited Members | |
![]() | |
using | PowerState = avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface::PowerState |
An implementation of an PowerControllerInterface
.
|
override |
|
static |
Create a PeripheralEndpointPowerControllerHandler object.
endpointName | The name of the endpoint. |
nullptr
.
|
overridevirtual |
Get the current power state of the endpoint.
AlexaResponseType::SUCCESS
and PowerState
otherwise returns a pair with the appropriate reason from AlexaResponseType
and a empty PowerState
Implements alexaClientSDK::avsCommon::sdkInterfaces::powerController::PowerControllerInterface.
|
override |
|
overridevirtual |
Set the power state of the endpoint.
powerState | The desired power state of the endpoint, true indicates 'ON' and false as 'OFF' |
cause | The cause type for this action represented using AlexaStateChangeCauseType . |
AlexaResponseType
and string. For the successful operation, the controller should return a pair with AlexaResponseType::SUCCESS
with an empty string, otherwise returns a pair with the appropriate reason from AlexaResponseType
and a string with log message that would be logged in cloud for debugging purpose. Implements alexaClientSDK::avsCommon::sdkInterfaces::powerController::PowerControllerInterface.
void alexaClientSDK::sampleApplications::common::PeripheralEndpointPowerControllerHandler::setPowerState | ( | bool | powerState | ) |
Set the power state of the controller.
powerState | The power state of the controller. true indicates ON and false as OFF. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0