We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d65c0a commit c50b740Copy full SHA for c50b740
examples/thermostat/linux/main.cpp
@@ -21,6 +21,9 @@
21
#include <app-common/zap-generated/ids/Clusters.h>
22
#include <app/CommandHandler.h>
23
#include <app/clusters/identify-server/identify-server.h>
24
+#include <app/clusters/thermostat-server/thermostat-server.h>
25
+
26
+#include "thermostat-delegate-impl.h"
27
28
using namespace chip;
29
using namespace chip::app;
@@ -78,3 +81,12 @@ int main(int argc, char * argv[])
78
81
ChipLinuxAppMainLoop();
79
82
return 0;
80
83
}
84
85
+using namespace chip::app::Clusters::Thermostat;
86
+void emberAfThermostatClusterInitCallback(EndpointId endpoint)
87
+{
88
+ // Register the delegate for the Thermostat
89
+ auto & delegate = ThermostatDelegate::GetInstance();
90
91
+ SetDefaultDelegate(endpoint, &delegate);
92
+}
0 commit comments