udp的发送接收端口如何设置

hhhhhh
Posts: 7
Joined: Fri Dec 11, 2020 12:36 am

udp的发送接收端口如何设置

Postby hhhhhh » Wed Jan 20, 2021 8:54 am

想请问各位如何设置udp的发送接收端口

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: udp的发送接收端口如何设置

Postby ESP_YJM » Mon Mar 22, 2021 6:53 am

详细请参考 udp_client/udp_server 示例(https://github.com/espressif/esp-idf/bl ... ls/sockets)。设置发送接口通过 sendto 发送的地址决定,设置接收端口通过 bind 决定。

Who is online

Users browsing this forum: No registered users and 125 guests