parse method

  1. @override
MavlinkMessage? parse(
  1. int messageID,
  2. ByteData data
)
override

Implementation

@override
MavlinkMessage? parse(int messageID, ByteData data) {
  switch (messageID) {
    case 0:
      return Heartbeat.parse(data);
    case 300:
      return ProtocolVersion.parse(data);
    default:
      return null;
  }
}