WidgetRTC string doesn't display Zeros

I’ve tried both Blynk V1 and 2.0 and Zero’s are dropped in the App display? In Blink V1 it was a value display and in V2 it’s a String.

I’m using the example sketch as reference.

It this how it is or is there a work around?

The problem is the way in which you’re constructing the string in your sketch.

Take a look at the sprintf function to format your string correctly with leading zeros.

Pete.

Thank you @PeteKnight that did the trick!

Still got a lot to learn and sometimes the “KISS” philosophy isn’t enough.

Cheers

Working_time

1 Like