File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libraries/Matter/examples/MatterOnOffLight Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
2323const 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
2630bool 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-
4343void setup () {
4444 // Initialize the USER BUTTON (Boot button) GPIO that will act as a toggle switch
4545 pinMode (buttonPin, INPUT_PULLUP);
You can’t perform that action at this time.
0 commit comments