Skip to content

Commit 8941efb

Browse files
committed
libraries/WiFi: UDP.stop function.
Signed-off-by: IFX-Anusha <[email protected]>
1 parent 553bd7e commit 8941efb

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)