请详细说明以下两个函数的区别
espconn_mesh_enable(mesh_enable_cb, MESH_LOCAL);
espconn_mesh_enable(mesh_enable_cb, MESH_ONLINE);
如果非根设备和服务器断开,请问非根设备怎么知道当前mesh网络是正常还是崩溃? espconn_mesh_enable(mesh_enable_cb, MESH_ONLINE);函数功能是 只是连接服务器不重建mesh网络?还是需要重新竞争ROOT 重建mesh 网络?
espconn_mesh_enable(mesh_enable_cb, MESH_LOCAL); 是只建立一个不联服务器的mesh 网吗? 如果服务器又恢复正常,mesh 怎么检测到并连接服务器?
我们需要的是 如果mesh 崩溃非根设备需要知道mesh 网络崩溃,需要重新竞争root, 并重建网络,如果mesh 正常, 只是断开服务器,非根设备只需要重新连接服务器, 而不需要重建mesh网络,这些逻辑需要调用什么函数来实现?
关键就是一个机制,根设备怎么知道底下的非根设备掉线,mesh已经崩溃,是否需要重建网络? 而非根设备怎么知道断开服务器或者root, 到底是只重新连接服务器,保存当前mesh 网状态, 还是需要重新参与竞争ROOT 重新建立mesh 网络?
请官方给予指导怎么实现这些逻辑,通过哪些函数, 因为你们的函数说明太简单了。
espconn_mesh_enable(mesh_enable_cb, MESH_LOCAL/MESH_ONLINE);
Who is online
Users browsing this forum: No registered users and 60 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.