eCLD_ThermostatSetAttribute
teZCL_Status eCLD_ThermostatSetAttribute(
uint8 u8SourceEndPointId,
uint8 u8AttributeId,
int16 i16AttributeValue);
Description
This function can be used on a Thermostat cluster server to update the Thermostat attributes - specifically to write a value to one of the following attributes:
i16LocalTemperature
i16OccupiedCoolingSetpoint
i16OccupiedHeatingSetpoint
The function first checks whether the value to be written falls within the valid range for the relevant attribute. If not, it returns with status E_ZCL_ERR_INVALID_VALUE. If the server attempts to write to an attribute other than those specified above, the function returns with status E_ZCL_DENY_ATTRIBUTE_ACCESS. If the cluster does not exist, it returns with status E_ZCL_ERR_CLUSTER_NOT_FOUND.
Parameters
u8SourceEndPointId Number of the endpoint on which the Thermostat cluster resides
u8AttributeId Identifier of attribute to be updated, one of:
E_CLD_THERMOSTAT_ATTR_ID_LOCAL_TEMPERATURE
E_CLD_THERMOSTAT_ATTR_ID_OCCUPIED_COOLING_SETPOINT
E_CLD_THERMOSTAT_ATTR_ID_OCCUPIED_HEATING_SETPOINT
i16AttributeValue Value to be written to attribute
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_INVALID_VALUE
E_ZCL_DENY_ATTRIBUTE_ACCESS
E_ZCL_ERR_CLUSTER_NOT_FOUND
Parent topic:Functions