PowerLevelController.
More...
#include <PowerLevelController.h>
template<
typename T>
class SINRICPRO_3_0_0::PowerLevelController< T >
PowerLevelController.
◆ onAdjustPowerLevel()
Set callback function for adjustPowerLevel request.
- Parameters
-
cb | Function pointer to a AdjustPowerLevelCallback function |
- See also
- AdjustPowerLevelCallback
◆ onPowerLevel()
Set callback function for setPowerLevel request.
- Parameters
-
cb | Function pointer to a SetPowerLevelCallback function |
- See also
- SetPowerLevelCallback
◆ sendPowerLevelEvent()
Send setPowerLevel
event to SinricPro Server indicating actual power level.
- Parameters
-
powerLevel | integer 0..100 report the powerlevel that the device have been set to |
cause | (optional) Reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
- Returns
- the success of sending the event
- 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 |