convert string to const char* arduino code example Example: convert string to const char* arduino const char *c = str.c_str();