Clients

Manage active UDP client connections

Add a UDP client connection

post

Registers a new UDP destination (IPv4 address + port). The ESP32 will start forwarding serial data to this endpoint immediately. Optionally persists the entry to NVM so it survives reboots.

Body
ipstring · ipv4Required

IPv4 address of the UDP destination

Example: 192.168.2.255
portinteger · min: 1 · max: 65535Required

UDP destination port

Example: 14550
savebooleanOptional

If true, persist this client to NVM so it is restored after a reboot. Only one entry can be persisted at a time.

Default: false
Responses
chevron-right
200

Result of the add operation

application/json

Generic status/message response used by several endpoints

statusstring · enumOptionalExample: successPossible values:
msgstringOptionalExample: Settings changed! Rebooting ...
post
/api/settings/clients/udp

Remove all UDP client connections

delete

Clears the entire in-memory UDP client list and erases the single persisted UDP client from NVM. Ground-control software will need to re-register after this call.

Responses
chevron-right
200

All UDP clients removed successfully

application/json

Generic status/message response used by several endpoints

statusstring · enumOptionalExample: successPossible values:
msgstringOptionalExample: Settings changed! Rebooting ...
delete
/api/settings/clients/clear_udp
200

All UDP clients removed successfully

Last updated