updateSetPoint method
Implementation
ThermostatSetPointReport updateSetPoint(List<int> data) {
var setPoint = ThermostatSetPointReport(data);
switch (setPoint.setPointType) {
case ThermostatSetPointType.heating:
heatingSetPoint = setPoint;
break;
case ThermostatSetPointType.cooling:
coolingSetPoint = setPoint;
break;
}
return setPoint;
}