Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何删除子节点,禁止新设备加入mesh网络,允许新设备加入网络 (AEGHB-548) #60

Open
qq547176052 opened this issue Feb 2, 2024 · 1 comment

Comments

@qq547176052
Copy link

删除子节点

禁止新设备加入mesh网络

允许新设备加入网络

@github-actions github-actions bot changed the title 如何删除子节点,禁止新设备加入mesh网络,允许新设备加入网络 如何删除子节点,禁止新设备加入mesh网络,允许新设备加入网络 (AEGHB-548) Feb 2, 2024
@tswen
Copy link
Contributor

tswen commented Feb 18, 2024

因为对于 Mesh-Lite 来说,子节点和父节点都是通过标准的 Wi-Fi SoftAP Station 进行连接的,且父节点不会管理其下连接的子节点。对于删除子节点这种操作,您可以放到应用层进行管理和操作,比如通过 esp_wifi_deauth_sta 踢掉某个子节点。

如果不想后续节点加入 Mesh 网络,可以根节点调用 esp_mesh_lite_allow_others_to_join(false) 来实现,后面要加入的设备除了传递给他路由器信息也要传递根节点 argot 的值,也就是一旦调用这个 API,后面加入的节点都会验证 argot 这样一个随机数,如果不匹配连上 wifi 也会被自动踢走。
argot 值可以通过 esp_mesh_lite_set_argot 来进行设置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants