MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / Callback

Method Callback

examples/Scheduler_example21_OO_Callbacks/Ticker.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8bool Ticker::Callback() {
9 Serial.println(); Serial.println(); Serial.println();
10 Serial.print(millis()); Serial.print(":\t");
11 Serial.println("CycleCallback: Initiating measurement cycle every 10 seconds");
12
13 int numberSensors = random(1, 11); // 1 to 10 sensors, randomly
14 Serial.print("Number of sensors=");
15 Serial.println(numberSensors);
16
17 iMeasure->setWaiting(numberSensors); // Set the StatusRequest to wait for 1 to 10 signals.
18 iCalc->waitFor(iMeasure);
19 return true;
20}
21

Callers

nothing calls this directly

Calls 3

millisFunction · 0.85
setWaitingMethod · 0.80
waitForMethod · 0.80

Tested by

no test coverage detected