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