I have a variable tweet that is a string and it has a character at the very beginning that I want to clip off.
So what I want to do is use strstr() to remove it. Here’s my code:
tweet = strstr(tweet, "]");
However, I get this error:
cannot convert 'String' to 'const char*' for argument '1' to
'char' strstr(const char*, const char*)
So my thought would be to convert tweet into a char. How would I go about doing so?
How about you use
substringinstead. This will be less confusing than converting between different types of string.http://arduino.cc/en/Reference/StringSubstring