Arduino String to Char*
char* string2char(String command){
if(command.length()!=0){
char *p = const_cast<char*>(command.c_str());
return p;
}
}
Written by Wenson Smith
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Arduino
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#