SinricPro Library
|
SinricPro namespace. More...
Classes | |
class | AirQualitySensor |
AirQuality. More... | |
class | BrightnessController |
BrightnessController. More... | |
class | CameraController |
CameraController class for managing camera operations in SinricPro. More... | |
class | ChannelController |
ChannelController. More... | |
class | ColorController |
ColorController. More... | |
class | ColorTemperatureController |
ColorTemperatureController. More... | |
class | ContactSensor |
ContactSensor. More... | |
class | Doorbell |
Dorbell. More... | |
class | DoorController |
DoorController - only used for GarageDoor device and cannot used as capability for a custom device! More... | |
class | EqualizerController |
EqualizerController. More... | |
class | InputController |
InputController. More... | |
class | KeypadController |
KeypadController. More... | |
class | LockController |
LockController. More... | |
class | MediaController |
MediaController. More... | |
class | ModeController |
ModeController. More... | |
class | MotionSensor |
MotionSensor. More... | |
class | MuteController |
MuteController. More... | |
class | OpenCloseController |
Controller class for devices with open/close functionalityThis controller handles open/close operations for devices that can be opened or closed by percentage and may supports multiple directions. More... | |
class | PercentageController |
PercentageController. More... | |
class | PowerLevelController |
PowerLevelController. More... | |
class | PowerSensor |
PowerSensor. More... | |
class | PowerStateController |
PowerStateController. More... | |
class | PushNotification |
PushNotification. More... | |
class | RangeController |
RangeControllerFloatInt. More... | |
class | SinricProAirQualitySensor |
Device to report air quality events. More... | |
class | SinricProBlinds |
Device to control interior blinds. More... | |
class | SinricProCamera |
Camera suporting snapshots, motions and on / off commands. More... | |
class | SinricProClass |
The main class of this library, handling communication between SinricPro Server and your devices. More... | |
class | SinricProContactsensor |
Device to report contact sensor events. More... | |
class | SinricProDevice |
Base class for all device types. More... | |
class | SinricProDimSwitch |
Device which supports on / off and dimming commands. More... | |
class | SinricProDoorbell |
Device to report doorbell events. More... | |
class | SinricProFan |
Device to turn on / off a fan and change it's speed by using powerlevel. More... | |
class | SinricProFanUS |
Device to control a fan with on / off commands and its speed by a range value. More... | |
class | SinricProGarageDoor |
Device to control a garage door. More... | |
class | SinricProLight |
Device to control a light. More... | |
class | SinricProLock |
Device to control a smart lock. More... | |
class | SinricProMotionsensor |
Device to report motion detection events. More... | |
class | SinricProPowerSensor |
Device to report power usage. More... | |
class | SinricProSpeaker |
Device to control a smart speaker. More... | |
class | SinricProSwitch |
Device suporting basic on / off command. More... | |
class | SinricProTemperaturesensor |
Device to report actual temperature and humidity. More... | |
class | SinricProThermostat |
Device to control Thermostat. More... | |
class | SinricProTV |
Device to control a TV. More... | |
class | SinricProWindowAC |
Device to control Window Air Conditioner. More... | |
class | SmartButtonStateController |
Controller class for managing smart button state and interactions. More... | |
class | StartStopController |
StartStopController class to handle start/stop and pause/unpause functionality. More... | |
class | TemperatureSensor |
TemperatureSensor. More... | |
class | ThermostatController |
ThermostatController. More... | |
class | ToggleController |
ToggleController. More... | |
class | VolumeController |
VolumeController. More... | |
Typedefs | |
using | ConnectedCallbackHandler = std::function< void(void)> |
Callback definition for onConnected function. | |
using | DisconnectedCallbackHandler = std::function< void(void)> |
Callback definition for onDisconnected function. | |
using | OTAUpdateCallbackHandler = std::function< bool(const String &url, int major, int minor, int patch, bool enforce)> |
Function signature for OTA update callback. | |
using | SetSettingCallbackHandler = std::function< bool(const String &id, const String &value)> |
Function signature for setting a module setting. | |
using | ReportHealthCallbackHandler = std::function< bool(String &healthReport)> |
Defines a function type for reporting device health status. | |
using | BrightnessCallback = std::function< bool(const String &, int &)> |
Callback definition for onBrightness function. | |
using | AdjustBrightnessCallback = std::function< bool(const String &, int &)> |
Callback definition for onAdjustBrightness function. | |
using | ChangeChannelCallback = std::function< bool(const String &, String &)> |
Callback definition for onChangeChannel function. | |
using | ChangeChannelNumberCallback = std::function< bool(const String &, int, String &)> |
Callback definition for onChangeChannelNumber function. | |
using | SkipChannelsCallback = std::function< bool(const String &, int, String &)> |
Callback definition for onSkipChannels function. | |
using | ColorCallback = std::function< bool(const String &, byte &, byte &, byte &)> |
Callback definition for onColor function. | |
using | ColorTemperatureCallback = std::function< bool(const String &, int &)> |
Callback definition for onColorTemperature function. | |
using | IncreaseColorTemperatureCallback = std::function< bool(const String &, int &)> |
Callback definition for onIncreaseColorTemperature function. | |
using | DecreaseColorTemperatureCallback = std::function< bool(const String &, int &)> |
Callback definition for onDecreaseColorTemperature function. | |
using | DoorCallback = std::function< bool(const String &, bool &)> |
Callback definition for onDoorState function. | |
using | SetBandsCallback = std::function< bool(const String &, const String &, int &)> |
Callback definition for onSetBands function. | |
using | AdjustBandsCallback = std::function< bool(const String &, const String &, int &)> |
Callback definition for onAdjustBands function. | |
using | ResetBandsCallback = std::function< bool(const String &, const String &, int &)> |
Callback definition for onResetBands function. | |
using | SelectInputCallback = std::function< bool(const String &, String &)> |
Callback definition for onSelectInput function. | |
using | KeystrokeCallback = std::function< bool(const String &, String &)> |
Callback definition for onKeystroke function. | |
using | LockStateCallback = std::function< bool(const String &, bool &)> |
Callback definition for onLockState function. | |
using | MediaControlCallback = std::function< bool(const String &, String &)> |
Callback definition for onMediaControl function. | |
using | ModeCallback = std::function< bool(const String &, String &)> |
Callback definition for onSetMode function. | |
using | GenericModeCallback = std::function< bool(const String &, const String &, String &)> |
Callback definition for onSetMode function for a specific instance. | |
using | MuteCallback = std::function< bool(const String &, bool &)> |
Callback definition for onMute function. | |
using | OpenCloseCallback = std::function< bool(const String &, int &)> |
Callback definition for onOpenClose callback. | |
using | AdjustOpenCloseCallback = std::function< bool(const String &, int &)> |
Callback definition for onAdjustOpenClose callback. | |
using | DirectionOpenCloseCallback = std::function< bool(const String &, const String &, int &)> |
Callback definition for onDirectionOpenClose callback. | |
using | AdjustDirectionOpenCloseCallback = std::function< bool(const String &, const String &, int &)> |
Callback definition for onAdjustDirectionOpenClose callback. | |
using | SetPercentageCallback = std::function< bool(const String &, int &)> |
Callback definition for onSetPercentage function. | |
using | AdjustPercentageCallback = std::function< bool(const String &, int &)> |
Callback definition for onAdjustPercentage function. | |
using | SetPowerLevelCallback = std::function< bool(const String &, int &)> |
Definition for setPowerLevel callback. | |
using | AdjustPowerLevelCallback = std::function< bool(const String &, int &)> |
Definition for onAdjustPowerLevel callback. | |
using | PowerStateCallback = std::function< bool(const String &, bool &)> |
Callback definition for onPowerState function. | |
using | GenericRangeValueCallback_int = bool(*)(const String &, const String &, int &) |
Callback definition for onRangeValue function. | |
using | GenericSetRangeValueCallback_int = GenericRangeValueCallback_int |
Callback definition for onRangeValue function on a specific instance. | |
using | AdjustRangeValueCallback = bool(*)(const String &, int &) |
Callback definition for onAdjustRangeValue function. | |
using | GenericAdjustRangeValueCallback_int = GenericRangeValueCallback_int |
Callback definition for onAdjustRangeValue function on a specific instance for custom devices. | |
using | StartStopCallback = std::function< bool(const String &, bool &)> |
Definition for onStartStop callback. | |
using | PauseUnpauseCallback = std::function< bool(const String &, bool &)> |
Definition for onPauseUnpause callback. | |
using | ThermostatModeCallback = std::function< bool(const String &, String &)> |
Callback definition for onThermostatMode function. | |
using | SetTargetTemperatureCallback = std::function< bool(const String &, float &)> |
Callback definition for onTargetTemperature function. | |
using | AdjustTargetTemperatureCallback = std::function< bool(const String &, float &)> |
Callback definition for onAdjustTargetTemperature function. | |
using | GenericToggleStateCallback = std::function< bool(const String &, const String &, bool &)> |
Callback definition for onToggleState function. | |
using | SetVolumeCallback = std::function< bool(const String &, int &)> |
Callback definition for onSetVolume function. | |
using | AdjustVolumeCallback = std::function< bool(const String &, int &, bool)> |
Callback definition for onAdjustVolume function. | |
SinricPro namespace.
using AdjustBandsCallback = std::function<bool(const String &, const String &, int &)> |
Callback definition for onAdjustBands function.
Gets called when device receive a adjustBands
request
[in] | deviceId | String which contains the ID of device |
[in] | bands | String with requested bands to change BASS , MIDRANGE , TREBBLE |
[in] | levelDelta | Integer with relative level value device should change bands about |
[out] | bands | String with changed bands BASS , MIDRANGE , TREBBLE |
[out] | levelDelta | Integer value with level bands changed to |
true | request handled properly |
false | request was not handled properly because of some error |
using AdjustBrightnessCallback = std::function<bool(const String &, int &)> |
Callback definition for onAdjustBrightness function.
Gets called when device receive a adjustBrightness
request
[in] | deviceId | String which contains the ID of device |
[in] | brightness | Relative integer value the device should change the brightness about |
[out] | brightness | Absolute integer value with new brightness the device is set to |
true | request handled properly |
false | request was not handled properly because of some error |
using AdjustDirectionOpenCloseCallback = std::function<bool(const String &, const String &, int &)> |
Callback definition for onAdjustDirectionOpenClose callback.
Gets called when device receives an adjustOpenClose
request with direction information
[in] | deviceId | String containing the ID of device |
[in] | openDirection | String direction in which to open: UP , DOWN , LEFT , RIGHT , IN , OUT |
[in,out] | openRelativePercent | Integer representing relative percentage change to apply On output, should contain the absolute percentage value the device has been set to |
true | Request handled successfully |
false | Request handling failed |
using AdjustOpenCloseCallback = std::function<bool(const String &, int &)> |
Callback definition for onAdjustOpenClose callback.
Gets called when device receives an adjustOpenClose
request
[in] | deviceId | String containing the ID of device |
[in,out] | openRelativePercent | Integer value representing the relative percentage change to apply On output, should contain the absolute percentage value the device has been set to |
true | Request handled successfully |
false | Request handling failed |
using AdjustPercentageCallback = std::function<bool(const String &, int &)> |
Callback definition for onAdjustPercentage function.
Gets called when device receive a adjustPercentage
request
[in] | deviceId | String which contains the ID of device |
[in] | percentageDelta | Integer with relative percentage the device should change about (-100..100) |
[out] | percentageDelta | Integer with absolute percentage device has been set to |
true | request handled properly |
false | request was not handled properly because of some error |
using AdjustPowerLevelCallback = std::function<bool(const String &, int &)> |
Definition for onAdjustPowerLevel callback.
Gets called when device receive a adjustPowerLevel
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | powerLevel | integer -100..100 delta value which power level have to be changed |
[out] | powerLevel | integer 0..100 report the absolute powerlevel that the device have been set to |
true | request handled properly |
false | request can`t be handled properly because of some error |
using AdjustRangeValueCallback = bool (*)(const String &, int &) |
Callback definition for onAdjustRangeValue function.
Gets called when device receive a adjustRangeValue
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | rangeValue | delta value for range value have to change |
[out] | rangeValue | returning the absolute range value |
true | request handled properly |
false | request was not handled properly because of some error |
using AdjustTargetTemperatureCallback = std::function<bool(const String &, float &)> |
Callback definition for onAdjustTargetTemperature function.
Gets called when device receive a adjustTargetTemperature
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | temperature | Float relative temperature device should change about |
[out] | temperature | Float absolute temperature device is set to |
true | request handled properly |
false | request was not handled properly because of some error |
using AdjustVolumeCallback = std::function<bool(const String &, int &, bool)> |
Callback definition for onAdjustVolume function.
Gets called when device receive a adjustVolume
request
[in] | deviceId | String which contains the ID of device |
[in] | volumeDelta | Integer with relative volume the device should change about (-100..100) |
[out] | volumeDelta | Integer with absolute volume device has been set to |
[in] | volumeDefault | Bool false if the user specified the amount by which to change the volume; otherwise true |
true | request handled properly |
false | request was not handled properly because of some error |
using BrightnessCallback = std::function<bool(const String &, int &)> |
Callback definition for onBrightness function.
Gets called when device receive a setBrightness
request
[in] | deviceId | String which contains the ID of device |
[in] | brightness | Absolute integer value the device should set its brightness to |
[out] | brightness | Absolute integer value with new brightness the device is set to |
true | request handled properly |
false | request was not handled properly because of some error |
using ChangeChannelCallback = std::function<bool(const String &, String &)> |
Callback definition for onChangeChannel function.
Gets called when device receive a changeChannel
request by using channel name
[in] | deviceId | String which contains the ID of device |
[in] | channel | String with channel name device is requested to switch to |
[out] | channel | String with channel name device has switchted to |
true | request handled properly |
false | request was not handled properly because of some error |
using ChangeChannelNumberCallback = std::function<bool(const String &, int, String &)> |
Callback definition for onChangeChannelNumber function.
Gets called when device receive a changeChannel
request by using channel number
[in] | deviceId | String which contains the ID of device |
[in] | channelNumber | Integer with channel number device is requested to switch to |
[out] | channelName | String with channel name device has switchted to |
true | request handled properly |
false | request was not handled properly because of some error |
Callback definition for onColor function.
Gets called when device receive a setColor
request
[in] | deviceId | String which contains the ID of device |
[in] | r | Byte value for red |
[in] | g | Byte value for green |
[in] | b | Byte value for blue |
[out] | r | Byte value for red |
[out] | g | Byte value for green |
[out] | b | Byte value for blue |
true | request handled properly |
false | request was not handled properly because of some error |
using ColorTemperatureCallback = std::function<bool(const String &, int &)> |
Callback definition for onColorTemperature function.
Gets called when device receive a setColorTemperature
request
[in] | deviceId | String which contains the ID of device |
[in] | colorTemperature | Integer value with color temperature the device should set to 2200 = warm white 2700 = soft white 4000 = white 5500 = daylight white 7000 = cool white |
[out] | colorTemperature | Integer value with color temperature the device is set to 2200 = warm white 2700 = soft white 4000 = white 5500 = daylight white 7000 = cool white |
true | request handled properly |
false | request was not handled properly because of some error |
using ConnectedCallbackHandler = std::function<void(void)> |
Callback definition for onConnected function.
Gets called when device is connected to SinricPro server
void |
using DecreaseColorTemperatureCallback = std::function<bool(const String &, int &)> |
Callback definition for onDecreaseColorTemperature function.
Gets called when device receive a decreaseColorTemperature
request
[in] | deviceId | String which contains the ID of device |
[in] | colorTemperature | Integer value -1 = Device should decrease color temperature |
[out] | colorTemperature | Integer value return the new color temperarature 2200 = warm white 2700 = soft white 4000 = white 5500 = daylight white 7000 = cool white |
true | request handled properly |
false | request was not handled properly because of some error |
using DirectionOpenCloseCallback = std::function<bool(const String &, const String &, int &)> |
Callback definition for onDirectionOpenClose callback.
Gets called when device receives a setOpenClose
request with direction information
[in] | deviceId | String containing the ID of device |
[in] | openDirection | String direction in which to open: UP , DOWN , LEFT , RIGHT , IN , OUT |
[in,out] | openPercent | Integer percentage (0-100) of how open the device should be set |
true | Request handled successfully |
false | Request handling failed |
using DisconnectedCallbackHandler = std::function<void(void)> |
Callback definition for onDisconnected function.
Gets called when device is disconnected from SinricPro server
void |
using DoorCallback = std::function<bool(const String &, bool &)> |
Callback definition for onDoorState function.
Gets called when device receive a open
or close
request
[in] | deviceId | String which contains the ID of device |
[in] | doorState | false = open, device is requested to open the garage door true = close, device is requested to close the garage door |
[out] | doorState | bool with actual state false = open, true = closed |
true | request handled properly |
false | request was not handled properly because of some error |
Callback definition for onAdjustRangeValue function on a specific instance for custom devices.
Gets called when device receive a adjustRangeValue
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | instance | String instance name |
[in] | rangeValue | delta value for range value have to change |
[out] | rangeValue | returning the absolute range value |
true | request handled properly |
false | request was not handled properly because of some error |
using GenericModeCallback = std::function<bool(const String &, const String &, String &)> |
Callback definition for onSetMode function for a specific instance.
Gets called when device receive a setBands
request
[in] | deviceId | String which contains the ID of device |
[in] | instance | String name of the instance |
[in] | mode | String device mode should set to |
[out] | mode | String devices mode is set to |
true | request handled properly |
false | request was not handled properly because of some error |
using GenericRangeValueCallback_int = bool (*)(const String &, const String &, int &) |
Callback definition for onRangeValue function.
Gets called when device receive a setRangeValue
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | rangeValue | for range value device has to be set |
[out] | rangeValue | returning the current range value |
true | request handled properly |
false | request was not handled properly because of some error |
Callback definition for onRangeValue function on a specific instance.
Gets called when device receive a setRangeValue
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | instance | String instance name |
[in] | rangeValue | for range value device has to be set |
[out] | rangeValue | returning the current range value |
true | request handled properly |
false | request was not handled properly because of some error |
using GenericToggleStateCallback = std::function<bool(const String &, const String&, bool &)> |
Callback definition for onToggleState function.
Gets called when device receive a setPowerState
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | instance | String which instance is requested |
[in] | state | true = device is requested to turn on false = device is requested to turn off |
[out] | state | true = device has been turned on false = device has been turned off |
true | request handled properly |
false | request was not handled properly because of some error |
using IncreaseColorTemperatureCallback = std::function<bool(const String &, int &)> |
Callback definition for onIncreaseColorTemperature function.
Gets called when device receive a increaseColorTemperature
request
[in] | deviceId | String which contains the ID of device |
[in] | colorTemperature | Integer value 1 = Device should increase color temperature |
[out] | colorTemperature | Integer value return the new color temperarature 2200 = warm white 2700 = soft white 4000 = white 5500 = daylight white 7000 = cool white |
true | request handled properly |
false | request was not handled properly because of some error |
using KeystrokeCallback = std::function<bool(const String &, String &)> |
Callback definition for onKeystroke function.
Gets called when device receive a setBands
request
[in] | deviceId | String which contains the ID of device |
[in] | keystroke | String keystroke INFO , MORE , SELECT , UP , DOWN , LEFT , RIGHT , PAGE_UP , PAGE_DOWN , PAGE_LEFT , PAGE_RIGHT |
[out] | keystroke | String keystroke INFO , MORE , SELECT , UP , DOWN , LEFT , RIGHT , PAGE_UP , PAGE_DOWN , PAGE_LEFT , PAGE_RIGHT |
true | request handled properly |
false | request was not handled properly because of some error |
using LockStateCallback = std::function<bool(const String &, bool &)> |
Callback definition for onLockState function.
Gets called when device receive a setLockState
request
[in] | deviceId | String which contains the ID of device |
[in] | state | true = device is requested to lock false = device is requested to unlock |
[out] | state | true = device has been locked false = device has been unlocked |
true | request handled properly |
false | request was not handled properly because of some error |
using MediaControlCallback = std::function<bool(const String &, String &)> |
Callback definition for onMediaControl function.
Gets called when device receive a mediaControl
request
[in] | deviceId | String which contains the ID of device |
[in] | control | String with requested control FastForward , Next , Pause , Play , Previous , Rewind , StartOver , Stop |
[out] | control | String with control FastForward , Next , Pause , Play , Previous , Rewind , StartOver , Stop |
true | request handled properly |
false | request was not handled properly because of some error |
using ModeCallback = std::function<bool(const String &, String &)> |
Callback definition for onSetMode function.
Gets called when device receive a setBands
request
[in] | deviceId | String which contains the ID of device |
[in] | mode | String device mode should set to MOVIE , MUSIC , NIGHT , SPORT , TV |
[out] | mode | String devices mode is set to MOVIE , MUSIC , NIGHT , SPORT , TV |
true | request handled properly |
false | request was not handled properly because of some error |
using MuteCallback = std::function<bool(const String &, bool &)> |
Callback definition for onMute function.
Gets called when device receive a setMute
request
[in] | deviceId | String which contains the ID of device |
[in] | mute | true mute device false unmute device |
[out] | mute | true device is muted false device is unmuted |
true | request handled properly |
false | request was not handled properly because of some error |
using OpenCloseCallback = std::function<bool(const String &, int &)> |
Callback definition for onOpenClose callback.
Gets called when device receives a setOpenClose
request
[in] | deviceId | String containing the ID of device |
[in,out] | openPercent | Integer percentage (0-100) of how open the device should be set (0 = closed, 100 = fully open) |
true | Request handled successfully |
false | Request handling failed |
typedef std::function< bool(const String &url, int major, int minor, int patch, bool forceUpdate)> OTAUpdateCallbackHandler |
Function signature for OTA update callback.
This typedef defines a function pointer type for OTA (Over-The-Air) update callbacks. The callback function should accept a URL string and a Version struct as parameters.
url | The URL from which the OTA update can be downloaded. |
major | The major version number |
minor | The minor version number |
patch | The patch version number |
forceUpdate | Skip the version check and apply the update. |
using PauseUnpauseCallback = std::function<bool(const String &, bool &)> |
Definition for onPauseUnpause callback.
Gets called when device receive a setPauseUnpause
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | pause | true for pause, false for unpause |
true | request handled properly |
false | request was not handled properly because of some error |
using PowerStateCallback = std::function<bool(const String &, bool &)> |
Callback definition for onPowerState function.
Gets called when device receive a setPowerState
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | state | true = device is requested to turn on false = device is requested to turn off |
[out] | state | true = device has been turned on false = device has been turned off |
true | request handled properly |
false | request was not handled properly because of some error |
typedef std::function< bool(String &healthReport)> ReportHealthCallbackHandler |
Defines a function type for reporting device health status.
This typedef creates an alias for a std::function that takes a reference to a String and returns a boolean value. It's designed to be used as a callback for health reporting
healthReport | A reference to a String that will contain the health status information. The callback function should populate this string with relevant health data. |
using ResetBandsCallback = std::function<bool(const String &, const String &, int &)> |
Callback definition for onResetBands function.
Gets called when device receive a onResetBands
request
[in] | deviceId | String which contains the ID of device |
[in] | bands | String with requested bands to reset BASS , MIDRANGE , TREBBLE |
[out] | bands | String with changed bands BASS , MIDRANGE , TREBBLE |
[out] | level | Integer value with level bands changed to |
true | request handled properly |
false | request was not handled properly because of some error |
using SelectInputCallback = std::function<bool(const String &, String &)> |
Callback definition for onSelectInput function.
Gets called when device receive a selectInput
request
[in] | deviceId | String which contains the ID of device |
[in] | input | String with input name device is requested to switch to 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 |
[out] | input | String with input name device has switchted to 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 |
true | request handled properly |
false | request was not handled properly because of some error |
using SetBandsCallback = std::function<bool(const String &, const String &, int &)> |
Callback definition for onSetBands function.
Gets called when device receive a setBands
request
[in] | deviceId | String which contains the ID of device |
[in] | bands | String with requested bands to change BASS , MIDRANGE , TREBBLE |
[in] | level | Integer value with level bands should set to |
[out] | bands | String with changed bands BASS , MIDRANGE , TREBBLE |
[out] | level | Integer value with level bands changed to |
true | request handled properly |
false | request was not handled properly because of some error |
using SetPercentageCallback = std::function<bool(const String &, int &)> |
Callback definition for onSetPercentage function.
Gets called when device receive a setPercentage
request
[in] | deviceId | String which contains the ID of device |
[in] | percentage | Integer with percentage device should set to |
[out] | percentage | Integer with percentage device has been set to |
true | request handled properly |
false | request was not handled properly because of some error |
using SetPowerLevelCallback = std::function<bool(const String &, int &)> |
Definition for setPowerLevel callback.
Gets called when device receive a setPowerLevel
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | powerLevel | integer 0..100 new powerlevel the device should be set to |
[out] | powerLevel | integer 0..100 report the powerlevel that the device have been set to |
true | request handled properly |
false | request was not handled properly because of some error |
Function signature for setting a module setting.
This callback is used to set a value for a specific setting identified by its ID.
id | The unique identifier of the setting to be set. |
value | The new value to be assigned to the setting. |
using SetTargetTemperatureCallback = std::function<bool(const String &, float &)> |
Callback definition for onTargetTemperature function.
Gets called when device receive a targetTemperature
request
[in] | deviceId | String which contains the ID of device |
[in] | temperature | Float device is requested to set the target temperature to |
[out] | temperature | Float target temperature temperature device is set to |
true | request handled properly |
false | request was not handled properly because of some error |
using SetVolumeCallback = std::function<bool(const String &, int &)> |
Callback definition for onSetVolume function.
Gets called when device receive a setVolume
request
[in] | deviceId | String which contains the ID of device |
[in] | volume | Integer with volume device should set to |
[out] | volume | Integer with volume device has been set to |
true | request handled properly |
false | request was not handled properly because of some error |
using SkipChannelsCallback = std::function<bool(const String &, int, String &)> |
Callback definition for onSkipChannels function.
Gets called when device receive a changeChannel
request by using channel number
[in] | deviceId | String which contains the ID of device |
[in] | channelCount | Integer with channels device is requested to skip -n ..+n |
[out] | channelName | String with channel name device has switchted to |
true | request handled properly |
false | request was not handled properly because of some error |
using StartStopCallback = std::function<bool(const String &, bool &)> |
Definition for onStartStop callback.
Gets called when device receive a setStartStop
reuqest
[in] | deviceId | String which contains the ID of device |
[in] | start | true for start, false for stop |
true | request handled properly |
false | request was not handled properly because of some error |
using ThermostatModeCallback = std::function<bool(const String &, String &)> |
Callback definition for onThermostatMode function.
Gets called when device receive a setThermostatMode
request
[in] | deviceId | String which contains the ID of device |
[in] | mode | String with mode device should set to |
[out] | mode | String device mode is set to |
true | request handled properly |
false | request was not handled properly because of some error |