Struct received over COM port from Arduino has incorrect values in some but not all of its fields
问题 I want to send some serial values to my PC. Arduino with sensors (master) >> via Bluetooth >> Arduino (slave) >> via serial com port >> PC with C# app Serial transmission works well from master to slave, but how can I receive and convert the values received to floats on the PC side using C#? Slave code is: Struct definition typedef struct { char bt1; float bt2; float bt3; float bt4; float bt5; float bt6; float bt7; char bt8; } PayloadBT; PayloadBT payloadBT; Struct sent to pc BT_writeAnything