Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 36d9480

Browse files
committedMay 11, 2025·
libraries/WiFi: UDP.stop function.
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
1 parent 553bd7e commit 36d9480

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ uint8_t WiFiUDP::begin(uint16_t port) {
3737

3838

3939
void WiFiUDP::stop() {
40-
40+
// Stop the UDP socket
41+
socket.end();
4142
}
4243

4344
int WiFiUDP::beginPacket(IPAddress ip, uint16_t port) {

0 commit comments

Comments
 (0)
Please sign in to comment.