So, trying my 1st go at the Ticker. Basically want to read temp sensor every 180 seconds and send it to a website. Works like a charm for about 2hrs and then just stops. Other functions on the module are fine. Haven't looked at the variable value (tickerTriggered) at that point yet. Will do that tonight. But maybe there's some limitations of the Ticker that I am missing here. If all else fails I can still do something with millisecs() in the loop but Ticker should be the thing to use I guess.
Cheers!
Oliver
Code looks like this:
Ticker tickerClick;
boolen tickerTriggered = false;
....
void tickerTrigger() {
tickerTriggered = true;
}
void callTemp() {
...
tickerTriggered = false;
}
void setup() {
...
tickerSetHigh.attach(180, tickerTrigger);
...
}
...
void loop() {
if (triggerTriggered == true) { callTemp(); }
...
}