Skip to content

Commit 8f723c0

Browse files
committed
WiFi connection status check
1 parent ed52b24 commit 8f723c0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22
## Version 2.9.12
33
- Fixed: Namespace implementation
4+
- Fixed: WiFi connection status check
45

56
## Version 2.9.11
67
- Add missing CAMERA_MODEL_AI_THINKER in Camera example

src/SinricPro.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,13 @@ void SinricProClass::handle() {
231231
return;
232232
}
233233

234+
if (WiFi.isConnected()) {
234235

235-
if (!isConnected()) connect();
236-
_websocketListener.handle();
237-
_udpListener.handle();
236+
if (!isConnected()) connect();
237+
_websocketListener.handle();
238+
_udpListener.handle();
239+
240+
}
238241

239242
handleReceiveQueue();
240243
handleSendQueue();

0 commit comments

Comments
 (0)