mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
cleanup basic example
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
using namespace std;
|
||||
using namespace std::placeholders;
|
||||
|
||||
// FIXME move to some global fnc lib
|
||||
#define ARRAY_LENGTH(array) sizeof(array)/sizeof(array[0])
|
||||
|
||||
struct SprocketConfig {
|
||||
int startupDelay;
|
||||
int serialBaudRate;
|
||||
@@ -28,7 +31,8 @@ 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) {};
|
||||
// TODO bind onMessage to network->onReceive
|
||||
//virtual void onMessage(uint32_t from, String &msg) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user