readPacket method

Future<void> readPacket()

Implementation

Future<void> readPacket() async {
  RxPacket? packet = await _receiver.receive();
  if (packet != null) {
    _packetNums.packNum = packet.packetNum;
    _processReceived(packet.data);
  }
}