iia wrote:3. Let's assume a group of three nodes which are normal nodes and are connected to the root node. Now if this group of three nodes are moved far away out of the range of the root node and also out of the range of the internet router then what will happen? One of these three nodes will now become a root node and the other two will connect to this root node I suppose?
the three nodes try to find parent node until the process fails.
4. Now let's assume the group of three nodes are brought back to within the range of the internet router and the root node that is connected to the internet router. Now it will be detected that there are two root nodes which is not correct so there will be a new contest and a new root node will be chosen?
The two root will contest for root.
Cheers.
Statistics: Posted by LPerezBustos — Sat Dec 24, 2016 10:29 am
1. What you said is right.
2. You can specify one node as root, then setup mesh network.
If you power off all the nodes and power on them again, they will contest for root.
Now, there is not api to set policy.
3. MESH_LOCAL means that the root connect router and doesn't setup TCP connection with server;
MESH_ONLINE means that the node connect parent AP or router AP and setup TCP connection with parent or server.
Note: Only root can work with MESH_LOCAL, the other node must work with MESH_ONLINE.
Statistics: Posted by Guest — Wed Nov 02, 2016 10:20 pm
Statistics: Posted by iia — Wed Oct 19, 2016 12:02 am
Code:
espconn_mesh_enable(cb_enable_mesh, MESH_LOCAL);
espconn_mesh_enable(cb_enable_mesh, MESH_ONLINE);
Statistics: Posted by Guest — Tue Oct 18, 2016 3:46 pm
Code:
espconn_mesh_enable(cb_enable_mesh, MESH_LOCAL);
espconn_mesh_enable(cb_enable_mesh, MESH_ONLINE);
Statistics: Posted by iia — Sun Oct 16, 2016 1:14 am