State machine

Create a state machine to check a message in a custom protocol.

The message format is (one byte each) : 0xAA , OxBB, len , …. data …. , CS

use the following starter code:

change the CS value and check the results

Extra:

Add support for 0xAA, 0xBB as part of the data