udpsrv - UDP Server#

Adapted Air780E/Air700E Air780EP/Air780EPV Air601 Air101/Air103 Air105 ESP32C3 ESP32S3

Note

This page document is automatically generated by this file. If there is any error, please submit issue or help modify pr, thank you!

Tip

This library has its own demo,click this link to view the demo example of udpsrv

Example

-- Please refer to the specific usage demo

udpsrv.create(port, topic, adapter)#

Create a UDP server

Parameters

Incoming Value Type

Explanation

int

Port number, required, must be greater than 0 and less 65525

string

The topic that receives UDP data. Required

int

Network adaptation number, default is nil, optional

Return Value

return value type

explanation

table

UDP The entity of the service. If the service fails to be created,nil

Examples

None