RyanHan
Junior Member level 3
Dear all expert,
I had setup the serial port of my MCU and its working fine. I am storing whatever I had recieved into a data buffer called
- - - Updated - - -
I am waiting for my serial port to send a string called "GAME START" and I will do some processing to it. My serial port will received other command like "GAME ENDED" and therefore I need to compare the exact string to do different coding.
Can I know what are the best way or easier way to compare the serial port string using microcontroller C programming.
Hope all expert can help. Thanks a lot
I had setup the serial port of my MCU and its working fine. I am storing whatever I had recieved into a data buffer called
Code:
unsigned char DATA[30];
- - - Updated - - -
I am waiting for my serial port to send a string called "GAME START" and I will do some processing to it. My serial port will received other command like "GAME ENDED" and therefore I need to compare the exact string to do different coding.
Can I know what are the best way or easier way to compare the serial port string using microcontroller C programming.
Hope all expert can help. Thanks a lot