ThermostatController.
More...
#include <ThermostatController.h>
template<
typename T>
class SINRICPRO_3_0_0::ThermostatController< T >
ThermostatController.
◆ onAdjustTargetTemperature()
Set callback function for adjustTargetTemperature
request.
- Parameters
-
cb | Function pointer to a AdjustTargetTemperatureCallback function |
- Returns
- void
- See also
- AdjustTargetTemperatureCallback
◆ onTargetTemperature()
Set callback function for targetTemperature
request.
- Parameters
-
cb | Function pointer to a SetTargetTemperatureCallback function |
- Returns
- void
- See also
- SetTargetTemperatureCallback
◆ onThermostatMode()
Set callback function for setThermostatMode
request.
- Parameters
-
cb | Function pointer to a ThermostatModeCallback function |
- Returns
- void
- See also
- ThermostatModeCallback
◆ sendTargetTemperatureEvent()
Send targetTemperature
event to report target temperature change.
- Parameters
-
temperature | Float with actual target temperature 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 |
◆ sendThermostatModeEvent()
Send thermostatMode
event to report a the new mode the device has been set to.
- Parameters
-
thermostatMode | String with actual mode (AUTO , COOL , HEAT ) 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 |