... | ... | @@ -2,6 +2,17 @@ |
|
|
|
|
|
PainlessMesh creates a self organizing and repairing network where all nodes are connected. All nodes in the mesh are equal. The network uses a star topology, avoiding any circular paths. Messages between different nodes are sent in JSON format, making them easy to understand and produce. Information on the JSON schema used for the various messages can be found [here](https://gitlab.com/BlackEdder/painlessMesh/wikis/mesh-protocol).
|
|
|
|
|
|
# Main features
|
|
|
|
|
|
- JSON based messages. They can be directly used on javascript code.
|
|
|
- Implemented as a layer-3 protocol. Connectionless and without confirmation.
|
|
|
- Accurate time synchronization. All nodes share same clock with a precision better than 10 ms.
|
|
|
- All nodes know the complete topology instantly. Updated every 3 seconds.
|
|
|
- Mesh autoconfigure itself. Any node can be disconnected in any moment. Any new node is integrated automatically.
|
|
|
- All nodes continuously monitor its directly connected peers to check if they are active.
|
|
|
- Single addressed and broadcast messages are possible.
|
|
|
- Network loops are actively avoided.
|
|
|
|
|
|
## Network layout
|
|
|
|
|
|
Every node acts as an accesspoint (AP) for other nodes to connect to and as a client to connect to one AP of another node. There is a limit of 4 station nodes per AP. This limit is fixed by ESP8266 SDK.
|
... | ... | |