add sendTo method, cleanup

This commit is contained in:
2018-06-12 23:23:27 +02:00
parent 03bb24d6c7
commit 306b0b59d8
6 changed files with 76 additions and 59 deletions

View File

@@ -24,7 +24,7 @@ class MeshApp : public Sprocket {
} using Sprocket::activate;
void advertise(MeshNet* network){
String msg = "Hi, my name is " + String(network->id);
String msg = "{ \"payload \": 1 }";
network->broadcast(msg);
}