MCPcopy Create free account
hub / github.com/Laxilef/OTGateway / MainTask

Method MainTask

src/MainTask.h:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12class MainTask : public Task {
13public:
14 MainTask(bool _enabled = false, unsigned long _interval = 0) : Task(_enabled, _interval) {
15 this->blinker = new Blinker();
16
17 network->setDelayCallback([this](unsigned int time) {
18 this->delay(time);
19 })->setYieldCallback([this]() {
20 this->yield();
21 });
22 }
23
24 ~MainTask() {
25 delete this->blinker;

Callers

nothing calls this directly

Calls 2

setYieldCallbackMethod · 0.45
setDelayCallbackMethod · 0.45

Tested by

no test coverage detected