Table widget

the table widget is great !

But it would be nice to be able to adjust the width of the columns!

the value is truncated, so it’s unusable

30-025517

1 Like

I worked around the problem by inverting the columns

My question is why the degree symbol ‘N°’ is wrong ?
30-025518

I depends on how you send the character value…

like this

String Col = "| Test N°" + String(Count);

so I will try

String Col = "| Test N"+ "\u00B0C" + String(Count);

I think it’s the same for French é è ç à ù
but why ?

Not a clue… perhaps something about how Blynk uses strings to send widget data… a conversion issue perhaps?

1 Like

Where is my mistake ? :wink:

String Col = “| Test N” + “\u00B0C”+ String(Count);
^
exit status 1
invalid operands of types ‘const char [9]’ and ‘const char [4]’ to binary ‘operator+’

Missing some brackets perhaps?

String Col = (“| Test N” + “\u00B0C”+ String(Count));

nope :thinking:

setup:104:32: error: invalid operands of types ‘const char [9]’ and ‘const char [4]’ to binary ‘operator+’

 String Col = ("| Test N" + "\u00B0C"+ String(Count));

                            ^

exit status 1
invalid operands of types ‘const char [9]’ and ‘const char [4]’ to binary ‘operator+’

@Gunner

here is the right way :wink:

String Col = "Test N" +String("\u00B0")+ String(Count);
1 Like

You can always switch values for name and value columns in your Table add/update calls.

1 Like

:joy::joy::joy::joy::joy:

1 décembre !!!
01-025667