Offline Script Before Edgent Running

I’m confused by your example sketch, as it appears to be missing any ticker_object_name.update() calls in the void loop.

It also doesn’t have these lines:

as the first two lines of the sketch, which will almost certainly result in the Blynk library compiling the sketch as though it is a legacy sketch.

Also, you’re declaring a BlynkTimer object…

that isn’t being used or serviced in your void loop.

I occasionally use the Ticker library, mostly to flash physical indicator LEDs at a given frequency. However, I don’t see a real use for the Ticker library in your sketch, if it was me who was writing this I’d use BlynkTimer instead of Ticker (actually no, I’d use interrupts, but if I wasn’t doing that I’d use BlynkTimer).

There is also an issue with the Ticker library in conjunction with Blynk Edgent, which is documented here:

Pete.

1 Like