hi friends,
I am trying to concat two strings
String val2=String(now.day());
String val3=String(now.minute());
String val4=String.concat(val2,val3);
Here i am not getting an output
i must get like this 2618
Where i am making mistake
hi friends,
I am trying to concat two strings
String val2=String(now.day());
String val3=String(now.minute());
String val4=String.concat(val2,val3);
Here i am not getting an output
i must get like this 2618
Where i am making mistake
String val4 = val2 + val3;
?
I am trying to concat two strings
strcat ![]()
I am trying to concat two strings
If you are using String functions, then the below page has the String functions/operator links to examples of how they are used.
Googling "arduino how to String concat" gave some useful results.
Here i am not getting an output
That is because you are not outputting the string in question. If you have extra code, which you didn't show, that outputs the string, perhaps you should have shown it.
Thanks to all, i got output using += operator.