Serial2 is recieving GPS streaming byte message data. Each message begins with an 0x10, followed by a message ID byte. Depending on what the message ID is I want to read bytes into an array then at the expected byte length check the end bytes 0x10, 0x03 that all messages end with. If the data in the array is good then I will store it in an I2C FRAM for later value extraction and conversion to another format.
A while back I asked about it and it was suggested with a similar example to make a state machine. The manner in which the example was written is what I followed. It will compile but I had not tried uploading and running it untill yesterday.
I tried adding "case" before each state yesderday but I believe when I tried it I did not include the single quotation marks. I will try it again.
The Arduino's are fun to play with but there are many functions only slightly explained on the playground. For someone like me with no C experience it can take a while to catch on. PaulS, I used to program in basic back when I was a kid and had a Comadore 64. ![]()