Hi, I want to take a string,and populate an array with its values. I know the length of the string is 16. I have tried
char *bit_number[16];
bit_number = bin.data();
and
char bit_number[16];
bit_number = bin.data();
I don't understand what String.data() is returning, why can't I assign it directly to an array? I'm getting compiler errors:
error: incompatible types in assignment of ‘const char*’ to ‘char* [16]’
and
error: incompatible types in assignment of ‘const char*’ to ‘char [16]’