如何解决Mesh-wifi:如果 RSSI 低于阈值,则更改父级
我正在使用连接在 wifi 网状网络中的多个 ESP32。
现在我有 5 个节点(N1
、N2
、N3
、N4
、N5
)以这种方式连接:
Root(N1)
|
L2 ( N2,N3,N4 )
|
L3 ( N5)
关于位置和距离:
我认为 N3
、N4
会连接到 N5
。
我发现是否可以设置变量以告诉节点在 RSSI 大于或小于参考时更改父节点。
这是link to esp-idf
我想我必须设置:
typedef struct {
int duration_ms; /* parent weak RSSI monitor duration,if the RSSI continues to be weak during this duration_ms,device will search for a new parent. */
int cnx_RSSi; /* RSSI threshold for keeping a good connection with parent.
If set a value greater than -120 dBm,a timer will be armed to monitor parent RSSI at a period time of duration_ms. */
int select_RSSi; /* RSSI threshold for parent selection. It should be a value greater than switch_RSSi. */
int switch_RSSi; /* disassociate with current parent and switch to a new parent when the RSSI is greater than this set threshold. */
int backoff_RSSi; /* RSSI threshold for connecting to the root */
} mesh_switch_parent_t;
我是否也必须设置:
typedef struct {
int high;
int medium;
int low;
} mesh_RSSi_threshold_t;
这些变量是如何相关的?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。