I am using Arduino and receiving a string from serial. I have converted that string into a character array. But I need to convert first 4 or 5 elements of that array back to string. Is there any way to do that?
I tried the following but it doesn't work:
String str= String('a[0]');