Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ce358c

Browse files
committed
WiFiUDP: make socket blocking with timeout
1 parent f5c6f3b commit 2ce358c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎libraries/WiFi/src/WiFiUdp.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ uint8_t arduino::WiFiUDP::begin(uint16_t port) {
3333
return 0;
3434
}
3535

36-
// do not block when trying to read from socket
37-
_socket.set_blocking(false);
36+
_socket.set_timeout(1000);
3837

3938
return 1;
4039
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /