TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
101 stars 32 forks source link

Posix / Arduino serial plugin endianness problem #218

Closed ffleurey closed 6 years ago

ffleurey commented 6 years ago

Passing UInt16 between Arduino and Posix (Raspberry Pi) with the Serial Plugin / Binary Serialization does not work.

ffleurey commented 6 years ago

See also #198

ffleurey commented 6 years ago

Added annotation @reverse_endianness "true" on protocols. It switches the endianness of the binary serializer for outgoing messages only. This means that if two machine have opposite endianness, the annotation has to be used on both sides.