You are sending a String (object) to a function that expects a string (c-string or null terminated character array). You could use the toCharArray() function to convert the String to a string and send the resulting string to the function. Better yet, don't use Strings as they can cause memory corruption in the small memory available to most Arduinos.