@@ -55,6 +55,8 @@ bool onOffLightCallback(bool state) {
55
55
}
56
56
57
57
void setup () {
58
+ Serial.begin (115200 );
59
+
58
60
// Initialize the USER BUTTON (Boot button) that will be used to decommission the Matter Node
59
61
pinMode (buttonPin, INPUT_PULLUP);
60
62
// Initialize the LED GPIO
@@ -63,9 +65,14 @@ void setup() {
63
65
// Manually connect to WiFi
64
66
WiFi.begin (ssid, password);
65
67
// Wait for connection
68
+ Serial.println ();
69
+ Serial.print (" Connecting to " );
70
+ Serial.println (ssid);
66
71
while (WiFi.status () != WL_CONNECTED) {
72
+ Serial.print (' .' );
67
73
delay (500 );
68
74
}
75
+ Serial.println ();
69
76
70
77
// Initialize at least one Matter EndPoint
71
78
OnOffLight.begin ();
@@ -77,11 +84,11 @@ void setup() {
77
84
Matter.begin ();
78
85
79
86
if (!Matter.isDeviceCommissioned ()) {
80
- log_i (" Matter Node is not commissioned yet." );
81
- log_i (" Initiate the device discovery in your Matter environment." );
82
- log_i (" Commission it to your Matter hub with the manual pairing code or QR code" );
83
- log_i (" Manual pairing code: %s\r\n " , Matter.getManualPairingCode ().c_str ());
84
- log_i (" QR code URL: %s\r\n " , Matter.getOnboardingQRCodeUrl ().c_str ());
87
+ Serial. println (" Matter Node is not commissioned yet." );
88
+ Serial. println (" Initiate the device discovery in your Matter environment." );
89
+ Serial. println (" Commission it to your Matter hub with the manual pairing code or QR code" );
90
+ Serial. printf (" Manual pairing code: %s\r\n " , Matter.getManualPairingCode ().c_str ());
91
+ Serial. printf (" QR code URL: %s\r\n " , Matter.getOnboardingQRCodeUrl ().c_str ());
85
92
}
86
93
}
87
94
0 commit comments