Skip to content

Commit

Permalink
fix(matter): change the place of wifi credentials in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored Oct 21, 2024
1 parent 0045cfa commit 7a33a9e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ MatterOnOffLight OnOffLight1;
MatterOnOffLight OnOffLight2;
MatterOnOffLight OnOffLight3;

// WiFi is manually set and started
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
const char *password = "your-password"; // Change this to your WiFi password

// Matter Protocol Endpoint Callback for each Light Accessory
bool setLightOnOff1(bool state) {
Serial.printf("CB-Light1 changed state to: %s\r\n", state ? "ON" : "OFF");
Expand All @@ -25,11 +29,6 @@ bool setLightOnOff3(bool state) {
return true;
}

// WiFi is manually set and started

const char *ssid = "your-ssid"; // Change this to your WiFi SSID
const char *password = "your-password"; // Change this to your WiFi password

void setup() {
Serial.begin(115200);
while (!Serial) {
Expand Down

0 comments on commit 7a33a9e

Please sign in to comment.