mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
pass scheduler to app
This commit is contained in:
25
src/Sprocket.h
Normal file
25
src/Sprocket.h
Normal 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
|
||||
Reference in New Issue
Block a user