mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
fix basic example
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
#include <TaskSchedulerDeclarations.h>
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "WiFiNet.h"
|
||||
#include "AppStack.h"
|
||||
#include "App.h"
|
||||
#include "Network.h"
|
||||
|
||||
struct SprocketConfig {
|
||||
int serialBaudRate;
|
||||
@@ -17,12 +17,14 @@ class Sprocket {
|
||||
private:
|
||||
AppStack* stack;
|
||||
Scheduler scheduler;
|
||||
Network* network;
|
||||
public:
|
||||
Sprocket();
|
||||
Sprocket* init(SprocketConfig);
|
||||
Sprocket* join(Network&);
|
||||
Sprocket* use(AppStack*);
|
||||
Sprocket* addTask(Task&);
|
||||
Sprocket* registerApp(App&);
|
||||
Sprocket* app(App&);
|
||||
void loop();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user