Skip to content

Commit 4340946

Browse files
facchinmmanchoz
authored andcommitted
MbedUdp: make socket non blocking
1 parent d4bb9d8 commit 4340946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/SocketWrapper/src/MbedUdp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ uint8_t arduino::MbedUDP::begin(uint16_t port) {
3131
return 0;
3232
}
3333

34-
_socket.set_timeout(1000);
34+
_socket.set_blocking(false);
35+
_socket.set_timeout(0);
3536

3637
return 1;
3738
}

0 commit comments

Comments
 (0)