@@ -55,6 +55,8 @@ bool onOffLightCallback(bool state) {
5555}
5656
5757void setup () {
58+ Serial.begin (115200 );
59+
5860 // Initialize the USER BUTTON (Boot button) that will be used to decommission the Matter Node
5961 pinMode (buttonPin, INPUT_PULLUP);
6062 // Initialize the LED GPIO
@@ -63,9 +65,14 @@ void setup() {
6365 // Manually connect to WiFi
6466 WiFi.begin (ssid, password);
6567 // Wait for connection
68+ Serial.println ();
69+ Serial.print (" Connecting to " );
70+ Serial.println (ssid);
6671 while (WiFi.status () != WL_CONNECTED) {
72+ Serial.print (' .' );
6773 delay (500 );
6874 }
75+ Serial.println ();
6976
7077 // Initialize at least one Matter EndPoint
7178 OnOffLight.begin ();
@@ -77,11 +84,11 @@ void setup() {
7784 Matter.begin ();
7885
7986 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 ());
8592 }
8693}
8794
0 commit comments