serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setUint64(8, lastHeartbeat, Endian.little);
  data_.setUint16(16, failedSessions, Endian.little);
  data_.setUint16(18, successfulSessions, Endian.little);
  data_.setUint8(20, signalQuality);
  data_.setUint8(21, ringPending);
  data_.setUint8(22, txSessionPending);
  data_.setUint8(23, rxSessionPending);
  return data_;
}