Skip to content

Commit b712053

Browse files
authored
fix(matter): wifi is always already connected
1 parent 54ea63e commit b712053

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

libraries/Matter/examples/MatterLambdaSingleCallbackManyEPs/MatterLambdaSingleCallbackManyEPs.ino

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,8 @@ void loop() {
109109
Serial.println("Matter Node not commissioned yet. Waiting for commissioning.");
110110
}
111111
}
112-
} else {
113-
if (Matter.isDeviceConnected()) {
114-
Serial.println("Matter Node is commissioned and connected to the network. Ready for use.");
115-
} else {
116-
Serial.println("Matter Node is commissioned. Waiting for the network connection.");
117-
}
118-
// wait 3 seconds for the network connection
119-
delay(3000);
120-
}
121-
122-
delay(100);
112+
Serial.println("Matter Node is commissioned and connected to the WiFi network. Ready for use.");
113+
}
114+
115+
delay(500);
123116
}

0 commit comments

Comments
 (0)