mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-17 05:36:39 +01:00
fix basic example
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
#ifndef __NETWORK_H__
|
||||
#define __NETWORK_H__
|
||||
|
||||
#include <TaskSchedulerDeclarations.h>
|
||||
|
||||
class Network {
|
||||
protected:
|
||||
Scheduler* scheduler;
|
||||
public:
|
||||
Network(){}
|
||||
virtual Network* connect();
|
||||
virtual Network* init() { return this; };
|
||||
virtual Network* connect() { return this; };
|
||||
virtual void update() {};
|
||||
Network* setScheduler(Scheduler* s) {
|
||||
scheduler = s;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user