File tree 6 files changed +13
-58
lines changed
libraries/Matter/examples
6 files changed +13
-58
lines changed Original file line number Diff line number Diff line change 1
- // #include <sdkconfig.h>
2
- // #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
3
- #include < Arduino.h>
4
- #include < WiFi.h>
5
-
6
1
// Matter Manager
7
2
#include < Matter.h>
3
+ #include < WiFi.h>
8
4
9
5
// List of Matter Endpoints for this Node
10
6
// On/Off Light Endpoint
@@ -66,9 +62,4 @@ void loop() {
66
62
delay (30000 );
67
63
Matter.decommission ();
68
64
Serial.println (" Matter Node is decommissioned. Commsssioning widget shall start over." );
69
- }
70
-
71
- // #else
72
- // void setup() {}
73
- // void loop() {}
74
- // #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
65
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "fqbn" : {
3
- "esp32s3" : [
4
- " espressif:esp32:esp32s3:PartitionScheme=huge_app,FlashMode=qio"
5
- ],
6
- "esp32s2" : [
7
- " espressif:esp32:esp32s2:PartitionScheme=huge_app,FlashMode=qio"
8
- ],
9
- "esp32" : [
10
- " espressif:esp32:esp32:PartitionScheme=huge_app,FlashMode=qio"
11
- ],
12
- "esp32c3" : [
13
- " espressif:esp32:esp32c3:PartitionScheme=huge_app,FlashMode=qio"
14
- ],
15
- "esp32c6" : [
16
- " espressif:esp32:esp32c6:PartitionScheme=huge_app,FlashMode=qio"
17
- ]
18
- },
19
- "requires" : [
20
- " CONFIG_SOC_WIFI_SUPPORTED=y" ,
21
- " CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
22
- ]
2
+ "fqbn_append" : " PartitionScheme=huge_app" ,
3
+ "requires" : [
4
+ " CONFIG_SOC_WIFI_SUPPORTED=y" ,
5
+ " CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
6
+ ]
23
7
}
24
8
Original file line number Diff line number Diff line change 1
- #include < sdkconfig.h>
2
- #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
3
- #include < Arduino.h>
4
- #include < WiFi.h>
5
-
6
1
// Matter Manager
7
2
#include < Matter.h>
3
+ #include < WiFi.h>
8
4
9
5
// List of Matter Endpoints for this Node
10
6
// There will be 3 On/Off Light Endpoints in the same Node
@@ -95,9 +91,4 @@ void loop() {
95
91
Serial.printf (" Matter Light #2 is %s\r\n " , OnOffLight2.getOnOff () ? " ON" : " OFF" );
96
92
Serial.printf (" Matter Light #3 is %s\r\n " , OnOffLight3.getOnOff () ? " ON" : " OFF" );
97
93
delay (3000 );
98
- }
99
-
100
- #else
101
- void setup () {}
102
- void loop () {}
103
- #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
94
+ }
Original file line number Diff line number Diff line change 4
4
" CONFIG_SOC_WIFI_SUPPORTED=y" ,
5
5
" CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
6
6
]
7
- }
8
-
7
+ }
Original file line number Diff line number Diff line change 1
- #include < sdkconfig.h>
2
- #ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
3
- #include < Arduino.h>
4
- #include < WiFi.h>
5
-
6
1
// Matter Manager
7
2
#include < Matter.h>
3
+ #include < WiFi.h>
8
4
9
5
// List of Matter Endpoints for this Node
10
6
// On/Off Light Endpoint
@@ -102,9 +98,4 @@ void loop() {
102
98
lastMillis = millis ();
103
99
OnOffLight.toggle (); // Matter Controller also can see the change
104
100
}
105
- }
106
-
107
- #else
108
- void setup () {}
109
- void loop () {}
110
- #endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
101
+ }
Original file line number Diff line number Diff line change 4
4
" CONFIG_SOC_WIFI_SUPPORTED=y" ,
5
5
" CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
6
6
]
7
- }
8
-
7
+ }
You can’t perform that action at this time.
0 commit comments