mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
introduce dispatch method to simplify things
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
#include <FS.h>
|
||||
#include "Network.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace std::placeholders;
|
||||
|
||||
struct SprocketConfig {
|
||||
int startupDelay;
|
||||
int serialBaudRate;
|
||||
@@ -25,6 +28,7 @@ class Sprocket {
|
||||
virtual Sprocket* activate();
|
||||
virtual Sprocket* activate(Scheduler*) { return this; }
|
||||
virtual Sprocket* activate(Scheduler*, Network*) { return this; }
|
||||
virtual void dispatch(uint32_t from, String &msg) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user