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

Clarification on join_mesh_without_configured_wifi (CONFIG_JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO) in esp_mesh_lite_config_t (AEGHB-944) #138

Open
3 tasks done
mrjohannchang opened this issue Jan 12, 2025 · 1 comment

Comments

@mrjohannchang
Copy link

mrjohannchang commented Jan 12, 2025

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

Could you please elaborate on the functionality of join_mesh_without_configured_wifi in esp_mesh_lite_config_t (JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO / CONFIG_JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO)?

I want to ensure that a mesh network can form regardless of whether the root node is connected to a router. While I understand that join_mesh_ignore_router_status needs to be set to true for this scenario, the example configuration also sets join_mesh_without_configured_wifi to true for non-root nodes. Could you clarify why this setting is necessary or beneficial in such a case?


Your clarification will help in properly configuring and understanding the library's behavior in this context.

Thank you!

(如果您偏好使用中文回覆也行!)

@github-actions github-actions bot changed the title What does join_mesh_without_configured_wifi ( CONFIG_JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO ) do? What does join_mesh_without_configured_wifi ( CONFIG_JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO ) do? (AEGHB-944) Jan 12, 2025
@mrjohannchang mrjohannchang changed the title What does join_mesh_without_configured_wifi ( CONFIG_JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO ) do? (AEGHB-944) Clarification on join_mesh_without_configured_wifi (CONFIG_JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO) in esp_mesh_lite_config_t (AEGHB-944) Jan 12, 2025
@tswen
Copy link
Contributor

tswen commented Jan 14, 2025

  • JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO 设置为 true:

    • 设备在上电执行 esp_mesh_lite_start 之后就会尝试加入 Mesh 网络,即使设备没有配网(没有路由器信息)。
  • JOIN_MESH_WITHOUT_CONFIGURED_WIFI_INFO 设置为 false:

    • 设备如果已经配过网,存在路由器信息,那么设备在上电执行 esp_mesh_lite_start 之后就会尝试加入 Mesh 网络;
    • 如果设备没有配过网,不存在路由器信息,那么设备在上电执行 esp_mesh_lite_start 之后就不会尝试加入 Mesh 网络,除非收到配网信息之后,用户主动调用 esp_mesh_lite_set_router_config(); esp_mesh_lite_connect();
  • join_mesh_ignore_router_status 设置为 true:

    • 指子节点尝试加入 Mesh 网络时,应当忽略根节点是否连接到路由器,即使根节点没有连接路由器,子节点与根节点 Mesh ID 保持一致其也可以加入到 Mesh 网络中。
    • 这个配置仅对于 no_router 示例里面的子节点有用,其他情况应当避免这个配置设置为 true。

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