basic mesh node example app

This commit is contained in:
2018-06-10 17:56:28 +02:00
parent e9a04ac827
commit 0e6d7f7f3d
12 changed files with 78 additions and 63 deletions

View File

@@ -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;