ModeController.
More...
#include <ModeController.h>
template<
typename T>
class SINRICPRO_3_0_0::ModeController< T >
ModeController.
◆ onSetMode() [1/2]
Set callback function for setMode
request on a specific instance.
- Parameters
-
instance | String with instance name |
cb | Function pointer to a ModeCallback function |
- Returns
- void
- See also
- ModeCallback
◆ onSetMode() [2/2]
Set callback function for setMode
request.
- Parameters
-
cb | Function pointer to a ModeCallback function |
- Returns
- void
- See also
- ModeCallback
◆ sendModeEvent() [1/2]
Send setMode
event to SinricPro Server indicating the mode on a specific instance has changed.
- Parameters
-
instance | String instance name |
mode | String with actual mode device is set to
MOVIE , MUSIC , NIGHT , SPORT , TV |
cause | (optional) String reason why event is sent (default = FSTR_SINRICPRO_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 |
◆ sendModeEvent() [2/2]
Send setMode
event to SinricPro Server indicating the mode has changed.
- Parameters
-
mode | String with actual mode device is set to
MOVIE , MUSIC , NIGHT , SPORT , TV |
cause | (optional) String reason why event is sent (default = FSTR_SINRICPRO_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 |