ColorController.
More...
#include <ColorController.h>
template<
typename T>
class SINRICPRO_3_0_0::ColorController< T >
ColorController.
◆ onColor()
Set callback function for setColor
request.
- Parameters
-
cb | Function pointer to a ColorCallback function |
- Returns
- void
- See also
- ColorCallback
◆ sendColorEvent()
Send setColor
event to SinricPro Server indicating actual color.
- Parameters
-
r | Byte value for red |
g | Byte value for green |
b | Byte value for blue |
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 |