Ejemplo n.º 1
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++;
 }
Ejemplo n.º 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++;
 }
Ejemplo n.º 3
0
 public void Send(AtCommand command)
 {
     _commandQueue.Enqueue(command);
 }