I'm trying to detect a string array that I'm getting from the serial comm. Eg . there are lots of information sent via serial port and I just need a certain bunch of this string and need my MCU use it as a getch().
The string comes via serial : [00:00:27]Channel[0]-->>Login success
My getch() function awaits only "Login success" which is inside the above string.
So what I have to do is to make my program see "Login success" inside the bunch of strings and triggered.
How can I do this since I'm a newbie with C++.
Thanks in advance,
US _________________ Umut Sonkurt
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
Posted: Thu Jan 31, 2013 8:24 am
CCS is 'C' not 'C++'.
However, CCS compiler includes several string compare routines.
Or you could analyse the input string by looking for the first 'L' followed by 'o'... 'til you get to the final 's'.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum