fix(matter): change the place of wifi credentials in the code
This commit is contained in:
parent
0045cfa658
commit
7a33a9eeff
1 changed files with 4 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue