Skip to content

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)