private void AddCommand(Stream stream, AtCommand command, ref int sequenceNumber)
 {
     byte[] payload = command.CreatePayload(sequenceNumber);
     Trace.WriteIf((command is ComWdgCommand) == false, Encoding.ASCII.GetString(payload));
     stream.Write(payload, 0, payload.Length);
     sequenceNumber++;
 }
Beispiel #2
0
 private void AddCommand(Stream stream, AtCommand command, ref int sequenceNumber)
 {
     byte[] payload = command.CreatePayload(sequenceNumber);
     Trace.WriteIf((command is ComWdgCommand) == false, Encoding.ASCII.GetString(payload));
     stream.Write(payload, 0, payload.Length);
     sequenceNumber++;
 }
 public void Send(AtCommand command)
 {
     _commandQueue.Enqueue(command);
 }