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
1
3
#include < Arduino.h>
2
4
#include < WiFi.h>
3
5
@@ -64,4 +66,9 @@ void loop() {
64
66
delay (30000 );
65
67
Matter.decommission ();
66
68
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
1
3
#include < Arduino.h>
2
4
#include < WiFi.h>
3
5
@@ -95,4 +97,9 @@ void loop() {
95
97
Serial.printf (" Matter Light #2 is %s\r\n " , OnOffLight2.getOnOff () ? " ON" : " OFF" );
96
98
Serial.printf (" Matter Light #3 is %s\r\n " , OnOffLight3.getOnOff () ? " ON" : " OFF" );
97
99
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
1
3
#include < Arduino.h>
2
4
#include < WiFi.h>
3
5
@@ -102,4 +104,9 @@ void loop() {
102
104
lastMillis = millis ();
103
105
OnOffLight.toggle (); // Matter Controller also can see the change
104
106
}
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 1
1
#pragma once
2
+ #include < sdkconfig.h>
3
+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
2
4
3
5
#include < Arduino.h>
4
6
#include < esp_matter.h>
@@ -28,4 +30,6 @@ class ArduinoMatter {
28
30
static void decommission ();
29
31
};
30
32
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 1
1
#pragma once
2
+ #include < sdkconfig.h>
3
+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
4
+
2
5
#include < Matter.h>
3
6
#include < functional>
4
7
@@ -16,4 +19,5 @@ class MatterEndPoint {
16
19
17
20
protected:
18
21
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 1
1
#pragma once
2
+ #include < sdkconfig.h>
3
+ #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
2
4
3
5
#include < Matter.h>
4
6
#include < MatterEndPoint.h>
@@ -28,4 +30,5 @@ class MatterOnOffLight : public MatterEndPoint {
28
30
bool started = false ;
29
31
bool state = false ; // default initial state is off, but it can be changed by begin(bool)
30
32
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