SinricPro Library
|
Device to control a TV. More...
#include <SinricProTV.h>
Public Member Functions | |
bool | sendPushNotification (String notification) |
Sending push notifications to SinricPro App. | |
void | onPowerState (PowerStateCallback cb) |
Set callback function for powerState request. | |
bool | sendPowerStateEvent (bool state, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setPowerState event to SinricPro Server indicating actual power state. | |
void | onSetVolume (SetVolumeCallback cb) |
Set callback function for setVolume request. | |
void | onAdjustVolume (AdjustVolumeCallback cb) |
Set callback function for adjustVolume request. | |
bool | sendVolumeEvent (int volume, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setVolume event to SinricPro Server indicating actual volume has changed. | |
void | onMute (MuteCallback cb) |
Set callback function for setMute request. | |
bool | sendMuteEvent (bool mute, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setMute event to SinricPro Server indicating actual mute state. | |
void | onMediaControl (MediaControlCallback cb) |
Set callback function for mediaControl request. | |
bool | sendMediaControlEvent (String mediaControl, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send mediaControl event to SinricPro Server indicating devices media control state. | |
void | onSelectInput (SelectInputCallback cb) |
Set callback function for selectInput request. | |
bool | sendSelectInputEvent (String intput, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send selectInput event to SinricPro Server to report selected input. | |
void | onChangeChannel (ChangeChannelCallback cb) |
Set callback function for changeChannel request. | |
void | onChangeChannelNumber (ChangeChannelNumberCallback cb) |
Set callback function for changeChannel request. | |
void | onSkipChannels (SkipChannelsCallback cb) |
Set callback function for skipChannels request. | |
bool | sendChangeChannelEvent (String channelName, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send changeChannel event to SinricPro Server to report selected channel. | |
Device to control a TV.
Supporting:
FastForward
, Next
, Pause
, Play
, Previous
, Rewind
, StartOver
, Stop
AUX 1
..AUX 7
, BLURAY
, CABLE
, CD
, COAX 1
,COAX 2
, COMPOSITE 1
, DVD
, GAME
, HD RADIO
, HDMI 1
.. HDMI 10
, HDMI ARC
, INPUT 1
..INPUT 10
, IPOD
, LINE 1
..LINE 7
, MEDIA PLAYER
, OPTICAL 1
, OPTICAL 2
, PHONO
, PLAYSTATION
, PLAYSTATION 3
, PLAYSTATION 4
, SATELLITE
, SMARTCAST
, TUNER
, TV
, USB DAC
, VIDEO 1
..VIDEO 3
, XBOX
|
inherited |
Set callback function for adjustVolume
request.
cb | Function pointer to a AdjustVolumeCallback function |
|
inherited |
Set callback function for changeChannel
request.
cb | Function pointer to a ChangeChannelCallback function |
|
inherited |
Set callback function for changeChannel
request.
cb | Function pointer to a ChangeChannelNumberCallback function |
|
inherited |
Set callback function for mediaControl
request.
cb | Function pointer to a MediaControlCallback function |
|
inherited |
Set callback function for setMute
request.
cb | Function pointer to a MuteCallback function |
|
inherited |
Set callback function for powerState
request.
cb | Function pointer to a PowerStateCallback function |
|
inherited |
Set callback function for selectInput
request.
cb | Function pointer to a SelectInputCallback function |
|
inherited |
Set callback function for setVolume
request.
cb | Function pointer to a SetVolumeCallback function |
|
inherited |
Set callback function for skipChannels
request.
cb | Function pointer to a SkipChannelsCallback function |
|
inherited |
Send changeChannel
event to SinricPro Server to report selected channel.
channelName | String with actual channel |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send mediaControl
event to SinricPro Server indicating devices media control state.
mediaControl | String with actual media control FastForward , Next , Pause , Play , Previous , Rewind , StartOver , Stop |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send setMute
event to SinricPro Server indicating actual mute state.
mute | true = device is muted on false = device is unmuted |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send setPowerState
event to SinricPro Server indicating actual power state.
state | true = device turned on false = device turned off |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Sending push notifications to SinricPro App.
notification | String with the notification |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send selectInput
event to SinricPro Server to report selected input.
input | String with actual media control AUX 1 ..AUX 7 , BLURAY , CABLE , CD , COAX 1 ,COAX 2 , COMPOSITE 1 , DVD , GAME , HD RADIO , HDMI 1 .. HDMI 10 , HDMI ARC , INPUT 1 ..INPUT 10 , IPOD , LINE 1 ..LINE 7 , MEDIA PLAYER , OPTICAL 1 , OPTICAL 2 , PHONO , PLAYSTATION , PLAYSTATION 3 , PLAYSTATION 4 , SATELLITE , SMARTCAST , TUNER , TV , USB DAC , VIDEO 1 ..VIDEO 3 , XBOX |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send setVolume
event to SinricPro Server indicating actual volume has changed.
volume | Integer reporting the volume that the device have been set to |
cause | (optional) Reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |