Value Display

When adding a Value Display, the graphic shows the value of pi. 3.14… but any of my decimal valued numbers get chopped off. Even when I push a string. The icon shows °C is there a way to concatenate a string? When I attempted that it seem to crash and restart my Sparkcore.

Both Value Display and virtualWrite support strings.

Try writing simple string like “abc” first, to see if it works.
Then, try to construct a String object with the value, and send it via virtualWrite.

Good luck! :wink:

would it be to far to ask a feature request for common labels in the graphic like (C,F,Ft,Miles,KM etc?) then we could just pass the integers and not the string costing less overhead blah blah etc.

1 Like

It was actually planned, but we lowered the priority. I’m glad that we thought it through.

Blynk.virtualWrite(5, "abc");

returns value zero on the Display Widget

Which OS do you use (iOS/Android)?

Using:

Blynk.virtualWrite(5, "12.5");
Blynk.virtualWrite(5, 14.5);

Returned:

12
14

iOS 8.3 iPhone 5s

1 Like

@tyler785 On Android it works…
The iOS app will be fixed with the next update.

Thanks for pointing this out! Cheers! :smile:

1 Like