1A String is passed to a C string function
strlen, strcmp, strcpy and atoi take a const char*. Call c_str() on the String to get one, or use the String methods such as length().
void setup() {
Serial.begin(9600);
String name = "Mokxi";
int n = strlen(name);
Serial.println(n);
}
void loop() {
}void setup() {
Serial.begin(9600);
String name = "Mokxi";
int n = strlen(name.c_str());
Serial.println(n);
}
void loop() {
}Mokxi’s build tab says: strlen takes C text