Search found 3 matches

by hy123456
Thu Oct 13, 2022 5:50 am
Forum: ESP-IDF 中文讨论版
Topic: esp32c3 AP模式如何配置udp主动向外sendto 数据
Replies: 0
Views: 1141

esp32c3 AP模式如何配置udp主动向外sendto 数据

参考例程udp_server wifi配置为AP模式
recfrom可以接收到其他连接设备发送的数据,马上sendto 对方也可以收到。
但是没有收到对方数据,主动sento对方,对方无法收到。
请教该如何设置,udp才能主动向外sendto 数据?
by hy123456
Thu Oct 13, 2022 5:44 am
Forum: ESP-BOX 中文讨论版
Topic: esp32c3 AP模式如何配置udp主动向外sendto 数据
Replies: 1
Views: 2977

esp32c3 AP模式如何配置udp主动向外sendto 数据

参考例程udp_server wifi配置为AP模式
recfrom可以接收到其他连接设备发送的数据,马上sendto 对方也可以收到。
但是没有收到对方数据,主动sento对方,对方无法收到。
请教该如何设置,udp才能主动向外sendto 数据?
by hy123456
Wed Oct 12, 2022 6:35 am
Forum: ESP IoT Solution 中文讨论版
Topic: esp32c3 AP模式如何配置主动向外sendto 数据?
Replies: 0
Views: 2550

esp32c3 AP模式如何配置主动向外sendto 数据?

参考的esp-idf-v4.4.2\examples\protocols\sockets\udp_server例程
配置为wifi AP 模式。udp 可以recvfrom到数据,马上sendto 回复对方,对方也是可以收到的。
但是如果没有收到对方发来的数据,sendto 发出不报错,但是对方也收不到?
请教如何配置可以在AP模式也能主动向外sendto数据?