cleanup build, examples and library

This commit is contained in:
2018-06-19 19:09:27 +02:00
parent 514f0fa8b8
commit 8d2342b60b
13 changed files with 124 additions and 23 deletions

View File

@@ -18,12 +18,12 @@ class MeshApp : public Sprocket {
net->mesh.onReceive(bind(&MeshApp::receivedCallback,this, _1, _2));
// add a task that sends stuff to the mesh
someTask.set(TASK_SECOND * 5, TASK_FOREVER,
bind(&MeshApp::advertise, this, net));
bind(&MeshApp::heartbeat, this, net));
scheduler->addTask(someTask);
someTask.enable();
} using Sprocket::activate;
void advertise(MeshNet* network){
void heartbeat(MeshNet* network){
String msg = "{ \"payload \": 1 }";
network->broadcast(msg);
}