Please edit your post, select the code, and put it between
[code] ...
[/code] tags.
You can do that by hitting the
# button above the posting area.
Multiple problems with this (and similar) lines:
if (inByte = 'F3 251 2 11 1001')
First, the "=" symbol assigns, not compares. You want "==".
Second, 'F3 251 2 11 1001' is not a multi-byte string. You want double quotes, eg. "F3 251 2 11 1001".
Third, that string won't fit into inByte which is only one byte.
Fourth, you don't compare strings like that (use strcmp instead) unless you use the String class, which itself is not recommended.