如何使用c#执行AT命令
我想知道如何在c#中使用AT + CLCC命令以及如何在控制台中监控响应? 我尝试使用以下代码。 但是我无法取得进展。这是我迄今为止所做的尝试。它没有给出任何回应。
这是我的代码:
_serialPort.WriteLine("AT+CLCC"); string responce = ""; responce = responce + _serialPort.ReadLine(); Console.WriteLine("Check this......:" + responce);
我该怎么办?
很久以前我在这里失去了几天。
使用DataReceived事件从串行端口接收数据。
SerialPort.DataReceived事件