mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 21:34:08 +01:00
add network as member of Sprocket
This commit is contained in:
@@ -21,6 +21,7 @@ Sprocket* Sprocket::activate() {
|
||||
|
||||
Sprocket* Sprocket::join(Network& net){
|
||||
Serial.println("join network");
|
||||
network = &net;
|
||||
net.init(&scheduler);
|
||||
net.onReceive(bind(&Sprocket::dispatch,this, _1, _2));
|
||||
net.connect();
|
||||
|
||||
Reference in New Issue
Block a user