In my project I requireneed to convert a string to a char array conversion, from. From various examples i concludeI concluded that toCharArray() will convert a string to a char array. But iI failed to do so. ErrorThe error is:
'a' does not name a type
The code I am using is:
String a = "45317";
char b[6];
a.toCharArray(b,6);
Resources are https://www.arduino.cc/en/Reference/StringToCharArray and http://forum.arduino.cc/index.php?topic=199362.0 .