20
20
#include < app/util/af-event.h>
21
21
#include < app/util/attribute-storage.h>
22
22
23
- #include " gen/attribute-id.h"
24
- #include " gen/attribute-type.h"
25
- #include " gen/cluster-id.h"
26
- #include " gen/enums.h"
23
+ #include < app/CommandHandler.h>
24
+ #include < app/common/gen/attribute-id.h>
25
+ #include < app/common/gen/attribute-type.h>
26
+ #include < app/common/gen/cluster-id.h>
27
+ #include < app/common/gen/command-id.h>
28
+ #include < app/common/gen/enums.h>
27
29
28
30
using namespace chip ;
29
31
@@ -43,36 +45,38 @@ void emberAfThermostatClusterServerInitCallback(void)
43
45
// or should this just be the responsibility of the thermostat application?
44
46
}
45
47
46
- bool emberAfThermostatClusterClearWeeklyScheduleCallback ()
48
+ bool emberAfThermostatClusterClearWeeklyScheduleCallback (chip::app::CommandHandler * commandObj )
47
49
{
48
50
// TODO
49
51
return false ;
50
52
}
51
- bool emberAfThermostatClusterGetRelayStatusLogCallback ()
53
+ bool emberAfThermostatClusterGetRelayStatusLogCallback (chip::app::CommandHandler * commandObj )
52
54
{
53
55
// TODO
54
56
return false ;
55
57
}
56
58
57
- bool emberAfThermostatClusterGetWeeklyScheduleCallback (uint8_t daysToReturn, uint8_t modeToReturn)
59
+ bool emberAfThermostatClusterGetWeeklyScheduleCallback (chip::app::CommandHandler * commandObj, uint8_t daysToReturn,
60
+ uint8_t modeToReturn)
58
61
{
59
62
// TODO
60
63
return false ;
61
64
}
62
65
63
- bool emberAfThermostatClusterSetWeeklyScheduleCallback (uint8_t numberOfTransitionsForSequence, uint8_t daysOfWeekForSequence,
66
+ bool emberAfThermostatClusterSetWeeklyScheduleCallback (chip::app::CommandHandler * commandObj,
67
+ uint8_t numberOfTransitionsForSequence, uint8_t daysOfWeekForSequence,
64
68
uint8_t modeForSequence, uint8_t * payload)
65
69
{
66
70
// TODO
67
71
return false ;
68
72
}
69
73
70
- bool emberAfThermostatClusterSetpointRaiseLowerCallback (uint8_t mode, int8_t amount)
74
+ bool emberAfThermostatClusterSetpointRaiseLowerCallback (chip::app::CommandHandler * commandObj, uint8_t mode, int8_t amount)
71
75
{
72
76
bool result = false ;
73
77
EndpointId endpoint = 1 ; // Hard code to 1 for now/
74
78
int32_t HeatingSetpoint = 2000 , CoolingSetpoint = 2600 ; // Set to defaults to be safe
75
- EmberAfStatus status;
79
+ EmberAfStatus status = EMBER_ZCL_STATUS_FAILURE ;
76
80
switch (mode)
77
81
{
78
82
case EMBER_ZCL_SETPOINT_ADJUST_MODE_HEAT_AND_COOL_SETPOINTS: {
0 commit comments