I'm sending command and parameters from one arduino board to another one. I want to validate whether the data has been corrupted or not at the other end. I'm looking for a basic sanity validation.
My packet looks like
struct Command {
uint8_t id,
uint8_t action,
int param
}
How would I go about creating CRC to validate at the other end? Thanks.