File tree 1 file changed +4
-4
lines changed
libraries/Matter/examples/MatterOnOffLight
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
22
22
// set your board USER BUTTON pin here
23
23
const uint8_t buttonPin = 0 ; // Set your pin here. Using BOOT Button. C6/C3 use GPIO9.
24
24
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
+
25
29
// Matter Protocol Endpoint Callback
26
30
bool setLightOnOff (bool state) {
27
31
Serial.printf (" User Callback :: New Light State = %s\r\n " , state ? " ON" : " OFF" );
@@ -36,10 +40,6 @@ bool setLightOnOff(bool state) {
36
40
return true ;
37
41
}
38
42
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
-
43
43
void setup () {
44
44
// Initialize the USER BUTTON (Boot button) GPIO that will act as a toggle switch
45
45
pinMode (buttonPin, INPUT_PULLUP);
You can’t perform that action at this time.
0 commit comments