layer basic com

This commit is contained in:
2018-07-12 01:42:43 +02:00
parent 45a1860852
commit 5f9de83c5a
7 changed files with 20 additions and 16 deletions

View File

@@ -28,13 +28,13 @@ class MeshNet : public Network {
MeshNet(MeshConfig cfg);
Network* init();
void broadcast(String msg);
void sendTo(uint32_t target, String msg);
void update(); // only needed when no scheduler was passed to mesh.init
void receivedCallback( uint32_t from, String &msg );
void newConnectionCallback(uint32_t nodeId);
void changedConnectionCallback();
void nodeTimeAdjustedCallback(int32_t offset);
void broadcast(String msg);
void sendTo(uint32_t target, String msg);
void onReceive(std::function<void(uint32_t from, String &msg)>);
};
#endif