PowerStateController.
More...
#include <PowerStateController.h>
template<
typename T>
class SINRICPRO_3_0_0::PowerStateController< T >
PowerStateController.
◆ onPowerState()
Set callback function for powerState
request.
- Parameters
-
cb | Function pointer to a PowerStateCallback function |
- Returns
- void
- See also
- PowerStateCallback
◆ sendPowerStateEvent()
Send setPowerState
event to SinricPro Server indicating actual power state.
- Parameters
-
state | true = device turned on
false = device turned off |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
- Returns
- the success of sending the even
- Return values
-
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |