If there's one thing I never managed to do: it's comparing strings. So I have the incoming message saved here
String Message2 = IClient[i].readStringUntil('\n');
And every time I try to compare it with
strcmp(Message2.c_str(),"Red"); //Hopefully comparing the Message2 with "Red"
I never get 0 returned.
I know from printing the Message2 to Serial that Message2 contains the word "Red".
I've tried using different methods (
string.equal(string2); etc.) but it never said that they are equal. What am I missing out on?