[Free][Windows only] UE4Duino 2 - Arduino (COM port) communication

That’s cool! Thanks!
I suggest two improvements:

  1. use two control bytes, to make sure a single byte from the float doesn’t get interpreted as a control byte with the same value. Two in a row would be harder to happen.
  2. on the for, check for i < 4. Right now you are trying to read until b[4], which is an invalid index for 4 bytes. I don’t know how Arduino recovers from that, but it would be a crash on PC.