mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
externalize example configs
This commit is contained in:
@@ -12,7 +12,7 @@ class MeshApp : public Sprocket {
|
||||
public:
|
||||
Task someTask;
|
||||
MeshNet* net;
|
||||
|
||||
MeshApp(SprocketConfig cfg) : Sprocket(cfg) {}
|
||||
Sprocket* activate(Scheduler* scheduler, Network* network) {
|
||||
net = static_cast<MeshNet*>(network);
|
||||
net->mesh.onReceive(bind(&MeshApp::receivedCallback,this, _1, _2));
|
||||
|
||||
Reference in New Issue
Block a user