File tree Expand file tree Collapse file tree 6 files changed +38
-6
lines changed Expand file tree Collapse file tree 6 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 1+ #include < sdkconfig.h>
2+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
13#include < Arduino.h>
24#include < WiFi.h>
35
@@ -64,4 +66,9 @@ void loop() {
6466 delay (30000 );
6567 Matter.decommission ();
6668 Serial.println (" Matter Node is decommissioned. Commsssioning widget shall start over." );
67- }
69+ }
70+
71+ #else
72+ void setup () {}
73+ void loop () {}
74+ #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
Original file line number Diff line number Diff line change 1+ #include < sdkconfig.h>
2+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
13#include < Arduino.h>
24#include < WiFi.h>
35
@@ -95,4 +97,9 @@ void loop() {
9597 Serial.printf (" Matter Light #2 is %s\r\n " , OnOffLight2.getOnOff () ? " ON" : " OFF" );
9698 Serial.printf (" Matter Light #3 is %s\r\n " , OnOffLight3.getOnOff () ? " ON" : " OFF" );
9799 delay (3000 );
98- }
100+ }
101+
102+ #else
103+ void setup () {}
104+ void loop () {}
105+ #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
Original file line number Diff line number Diff line change 1+ #include < sdkconfig.h>
2+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
13#include < Arduino.h>
24#include < WiFi.h>
35
@@ -102,4 +104,9 @@ void loop() {
102104 lastMillis = millis ();
103105 OnOffLight.toggle (); // Matter Controller also can see the change
104106 }
105- }
107+ }
108+
109+ #else
110+ void setup () {}
111+ void loop () {}
112+ #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
Original file line number Diff line number Diff line change 11#pragma once
2+ #include < sdkconfig.h>
3+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
24
35#include < Arduino.h>
46#include < esp_matter.h>
@@ -28,4 +30,6 @@ class ArduinoMatter {
2830 static void decommission ();
2931};
3032
31- extern ArduinoMatter Matter;
33+ extern ArduinoMatter Matter;
34+
35+ #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
Original file line number Diff line number Diff line change 11#pragma once
2+ #include < sdkconfig.h>
3+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
4+
25#include < Matter.h>
36#include < functional>
47
@@ -16,4 +19,5 @@ class MatterEndPoint {
1619
1720 protected:
1821 uint16_t endpoint_id = 0 ;
19- };
22+ };
23+ #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
Original file line number Diff line number Diff line change 11#pragma once
2+ #include < sdkconfig.h>
3+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
24
35#include < Matter.h>
46#include < MatterEndPoint.h>
@@ -28,4 +30,5 @@ class MatterOnOffLight : public MatterEndPoint {
2830 bool started = false ;
2931 bool state = false ; // default initial state is off, but it can be changed by begin(bool)
3032 EndPointCB _onChangeCB = NULL ;
31- };
33+ };
34+ #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
You can’t perform that action at this time.
0 commit comments