File tree Expand file tree Collapse file tree 6 files changed +13
-58
lines changed
libraries/Matter/examples Expand file tree Collapse file tree 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-
61// Matter Manager
72#include < Matter.h>
3+ #include < WiFi.h>
84
95// List of Matter Endpoints for this Node
106// On/Off Light Endpoint
@@ -66,9 +62,4 @@ void loop() {
6662 delay (30000 );
6763 Matter.decommission ();
6864 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 11{
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+ ]
237}
248
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-
61// Matter Manager
72#include < Matter.h>
3+ #include < WiFi.h>
84
95// List of Matter Endpoints for this Node
106// There will be 3 On/Off Light Endpoints in the same Node
@@ -95,9 +91,4 @@ void loop() {
9591 Serial.printf (" Matter Light #2 is %s\r\n " , OnOffLight2.getOnOff () ? " ON" : " OFF" );
9692 Serial.printf (" Matter Light #3 is %s\r\n " , OnOffLight3.getOnOff () ? " ON" : " OFF" );
9793 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 44 " CONFIG_SOC_WIFI_SUPPORTED=y" ,
55 " CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
66 ]
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-
61// Matter Manager
72#include < Matter.h>
3+ #include < WiFi.h>
84
95// List of Matter Endpoints for this Node
106// On/Off Light Endpoint
@@ -102,9 +98,4 @@ void loop() {
10298 lastMillis = millis ();
10399 OnOffLight.toggle (); // Matter Controller also can see the change
104100 }
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 44 " CONFIG_SOC_WIFI_SUPPORTED=y" ,
55 " CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
66 ]
7- }
8-
7+ }
You can’t perform that action at this time.
0 commit comments