fix(matter): change place of wifi credentials in code
This commit is contained in:
parent
f1f0e4d4f3
commit
0045cfa658
1 changed files with 4 additions and 4 deletions
|
|
@ -22,6 +22,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
|
||||||
// set your board USER BUTTON pin here
|
// set your board USER BUTTON pin here
|
||||||
const uint8_t buttonPin = 0; // Set your pin here. Using BOOT Button. C6/C3 use GPIO9.
|
const uint8_t buttonPin = 0; // Set your pin here. Using BOOT Button. C6/C3 use GPIO9.
|
||||||
|
|
||||||
|
// 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
|
// Matter Protocol Endpoint Callback
|
||||||
bool setLightOnOff(bool state) {
|
bool setLightOnOff(bool state) {
|
||||||
Serial.printf("User Callback :: New Light State = %s\r\n", state ? "ON" : "OFF");
|
Serial.printf("User Callback :: New Light State = %s\r\n", state ? "ON" : "OFF");
|
||||||
|
|
@ -36,10 +40,6 @@ bool setLightOnOff(bool state) {
|
||||||
return true;
|
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() {
|
void setup() {
|
||||||
// Initialize the USER BUTTON (Boot button) GPIO that will act as a toggle switch
|
// Initialize the USER BUTTON (Boot button) GPIO that will act as a toggle switch
|
||||||
pinMode(buttonPin, INPUT_PULLUP);
|
pinMode(buttonPin, INPUT_PULLUP);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue