pass scheduler to app

This commit is contained in:
2018-06-02 19:30:20 +02:00
parent 392e39734c
commit e0cb8a9583
13 changed files with 328 additions and 11 deletions

25
src/Sprocket.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef __SPROCKET_H__
#define __SPROCKET_H__
#include <TaskSchedulerDeclarations.h>
#include <Arduino.h>
#include "WiFiNet.h"
#include "AppStack.h"
#include "App.h"
class Sprocket {
private:
AppStack* stack;
Scheduler scheduler;
public:
Sprocket();
Sprocket* use(AppStack* stack);
Sprocket* addTask(Task& tsk);
Sprocket* registerApp(App& app);
void loop();
};
#endif