PowerLevelController.
More...
template<typename T>
class SINRICPRO_2_9_17::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()
bool sendPowerLevelEvent |
( |
int |
powerLevel, |
|
|
String |
cause = FSTR_SINRICPRO_PHYSICAL_INTERACTION |
|
) |
| |
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 |