Trouble with String or character array comparison.

Got it!
Carriage returns (ASCII 13) != line feeds (ASCII 10), for one thing. So checking if(theCommand == "Hello\n") didn't work.

When I change the comparison to if(theCommand == ("Hello!\r")), my comparison triggers. Thanks a lot for your insights PaulS. Cheers. =]

1 Like