Keeping the state machine in Mesh.cpp and the network_recv methods into another class.
A good name for the class might be MeshNetworkHandler.
The Mesh class could also be renamed to MeshSM, and perhaps create a new class Mesh which creates instances of both classes mentioned above.
Keeping the state machine in Mesh.cpp and the network_recv methods into another class. A good name for the class might be MeshNetworkHandler. The Mesh class could also be renamed to MeshSM, and perhaps create a new class Mesh which creates instances of both classes mentioned above.