serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt16(0, temperature, Endian.little);
  data_.setUint16(2, humidity, Endian.little);
  data_.setUint8(4, id);
  return data_;
}