esp_mesh_recv 收数据机制

flyfly20000
Posts: 12
Joined: Mon Aug 26, 2019 8:54 am

esp_mesh_recv 收数据机制

Postby flyfly20000 » Fri Aug 30, 2019 8:53 am

你好

请问 esp_mesh_recv这个函数有个提示
@attention Mesh RX queue should be checked regularly to avoid running out of memory.
* - Use esp_mesh_get_rx_pending() to check the number of packets available in the queue waiting
* to be received by applications.

这里的avoid running out of memory ,具体要如何避免? 不定期执行esp_mesh_recv函数?如果其他节点发了信息给A节点,A节点处理速度跟不上,会自动丢失?溢出?

it_zzc
Posts: 46
Joined: Mon Apr 15, 2019 1:37 pm

Re: esp_mesh_recv 收数据机制

Postby it_zzc » Thu Sep 05, 2019 3:38 am

设备向上发送(子节点 --> 根节点) 是有流控的,因此不会出现这个问题,
但向下发送是目前没有流控的,如果 根节点给子节点发包子节点 RX 满是会丢包的,后期我们也会增加向下流控的功能

Who is online

Users browsing this forum: No registered users and 7 guests