Firmware  0.7.1
Loading...
Searching...
No Matches
intf::udp Namespace Reference

Functions

esp_err_t init ()
 Initialize UDP.

Variables

constexpr uint16_t port {21105u}
int sock_fd

Function Documentation

◆ init()

esp_err_t intf::udp::init ( )

Initialization takes place in init(). This function creates an IPv4 UDP socket, stores the descriptor in sock_fd, and binds it to port 21105 on all local interfaces (INADDR_ANY).

The initialized socket is used by the Z21 service.

Variable Documentation

◆ port

uint16_t intf::udp::port {21105u}
inlineconstexpr

◆ sock_fd

int intf::udp::sock_fd
inline