private void Sl_MessageAvailable(Object sender, EventArgs e) => NMEAParser.Parse((Byte[])_sl.MessagesQueue.Dequeue());
/// <summary>Sends a command to the GNSS 4 module.</summary> /// <param name="cmd">The command, with both the starting '$' and the ending '*'.</param> public void SendCommand(String cmd) { _gnss.Write(Encoding.UTF8.GetBytes($"{cmd}{NMEAParser.CalculateChecksum(Encoding.UTF8.GetBytes(cmd)):X2}\r\n")); _gnss.Flush(); }