Skip to content

Commit 0045cfa

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
2222
// set your board USER BUTTON pin here
2323
const uint8_t buttonPin = 0; // Set your pin here. Using BOOT Button. C6/C3 use GPIO9.
2424

25+
// WiFi is manually set and started
26+
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
27+
const char *password = "your-password"; // Change this to your WiFi password
28+
2529
// Matter Protocol Endpoint Callback
2630
bool setLightOnOff(bool state) {
2731
Serial.printf("User Callback :: New Light State = %s\r\n", state ? "ON" : "OFF");
@@ -36,10 +40,6 @@ bool setLightOnOff(bool state) {
3640
return true;
3741
}
3842

39-
// WiFi is manually set and started
40-
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
41-
const char *password = "your-password"; // Change this to your WiFi password
42-
4343
void setup() {
4444
// Initialize the USER BUTTON (Boot button) GPIO that will act as a toggle switch
4545
pinMode(buttonPin, INPUT_PULLUP);

0 commit comments

Comments
 (0)