File tree 1 file changed +4
-5
lines changed
libraries/Matter/examples/WiFiProvWithinMatter
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 15
15
This same Example could be used for any other WiFi Provisioning method.
16
16
*/
17
17
18
-
19
18
// Matter Manager
20
19
#include < Matter.h>
21
20
#include < WiFiProv.h>
22
21
#include < WiFi.h>
23
22
24
23
#if !CONFIG_BLUEDROID_ENABLED
25
- #define USE_SOFT_AP // ESP32-S2 has no BLE, therefore, it shall use SoftAP Provisioning
24
+ #define USE_SOFT_AP // ESP32-S2 has no BLE, therefore, it shall use SoftAP Provisioning
26
25
#endif
27
26
// #define USE_SOFT_AP // Uncomment if you want to enforce using the Soft AP method instead of BLE
28
27
@@ -81,7 +80,7 @@ void setup() {
81
80
Serial.println (" \r\n ================================================" );
82
81
Serial.println (" Already 10 minutes past. The device will reboot." );
83
82
Serial.println (" ================================================\r\n " );
84
- Serial.flush (); // wait until the Serial has sent the whole message.
83
+ Serial.flush (); // wait until the Serial has sent the whole message.
85
84
ESP.restart ();
86
85
}
87
86
// WiFi searching feedback
@@ -93,10 +92,10 @@ void setup() {
93
92
Serial.println ();
94
93
}
95
94
}
96
-
95
+
97
96
// WiFi shall be connected by now
98
97
Serial.println ();
99
-
98
+
100
99
// Initialize at least one Matter EndPoint
101
100
OnOffLight.begin ();
102
101
You can’t perform that action at this time.
0 commit comments