Hi
I’m starting to work with Tables and would like to add unit symbols (degC, kPa etc) to the values being sent to the table. Can this be done, and if so, how? I tried adding an extra comma delimiter after the value to add a unit, but this didn’t show on the Table.
‘’’ Blynk.virtualWrite(V20, “update”, 0, “Temperature”, tempData, “*C”);
‘’’
Also, can the dot Icons be changed to different colours or even different icons. Is so, how?
The easiest (I think) would be to send concatenated string. So first prepare the string and then send it via virtualWrite. Blynk app accepts also Unicode icons, these can be added to string as well. You can search the forum- how to do it has been discussed.
It shows up, because that is the desired way to display data (with units) … and it can be easily accomplished. But adding a field to the table definition wouldn’t have much sense: it is enough to look at the screenshot you’ve attached.
@marvin7 I probably showed too much of the screen shot. I was particularly trying to highlight the three examples at the top of the settings page where they show Temperature 31.4 *C, Water Level 3.14 L etc. It is these units that I’m wanting to replicate, so will work on concatenating a string, as earlier suggested.
That is the way it is done… or sometimes, depending on the widget (like the Labeled Display), by adding in the units in the LABEL field (with emoticons or ALT<code> keyboard options)
float t = dht.readTemperature();
String TempDisplay = (String(t,1) + "\u00B0C"); // Display value to one decimal point and degrees Celsius
Blynk.virtualWrite(V63, "add", 1, "Temp", TempDisplay);