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