udpc_close()

udpc_close()#

Closes the UDP client instance referenced by udpc, releasing all associated resources.

Prototype

void udpc_close(
    udpc_t udpc
);

Parameters

Key

Type

Description

udpc

udpc_t

A handle to the UDP client instance to be closed.


Return Value

This function does not return a value.

Notes

If udpc is NULL, the function returns immediately without performing any action. The function removes the UDP client from the internal list and deallocates its memory. If the client has an open socket, it is closed before deallocation. On ESP32 platforms, the associated event loop is deleted before freeing resources.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples