BrightnessController.
More...
template<typename T>
class SINRICPRO_2_9_17::BrightnessController< T >
BrightnessController.
◆ onAdjustBrightness()
Set callback function for adjustBrightness
request.
- Parameters
-
cb | Function pointer to a AdjustBrightnessCallback function |
- Returns
- void
- See also
- AdjustBrightnessCallback
◆ onBrightness()
Set callback function for setBrightness
request.
- Parameters
-
cb | Function pointer to a BrightnessCallback function |
- Returns
- void
- See also
- BrightnessCallback
◆ sendBrightnessEvent()
bool sendBrightnessEvent |
( |
int |
brightness, |
|
|
String |
cause = FSTR_SINRICPRO_PHYSICAL_INTERACTION |
|
) |
| |
Send setBrightness
event to SinricPro Server indicating actual brightness.
- Parameters
-
brightness | Integer value with actual brightness the device is set to |
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 |