Skip to content

Commit 7a33a9e

Browse files
authored
fix(matter): change the place of wifi credentials in the code
1 parent 0045cfa commit 7a33a9e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: libraries/Matter/examples/MatterComposedLights/MatterComposedLights.ino

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ MatterOnOffLight OnOffLight1;
99
MatterOnOffLight OnOffLight2;
1010
MatterOnOffLight OnOffLight3;
1111

12+
// WiFi is manually set and started
13+
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
14+
const char *password = "your-password"; // Change this to your WiFi password
15+
1216
// Matter Protocol Endpoint Callback for each Light Accessory
1317
bool setLightOnOff1(bool state) {
1418
Serial.printf("CB-Light1 changed state to: %s\r\n", state ? "ON" : "OFF");
@@ -25,11 +29,6 @@ bool setLightOnOff3(bool state) {
2529
return true;
2630
}
2731

28-
// WiFi is manually set and started
29-
30-
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
31-
const char *password = "your-password"; // Change this to your WiFi password
32-
3332
void setup() {
3433
Serial.begin(115200);
3534
while (!Serial) {

0 commit comments

Comments
 (0)