.Net Micro work研究—串口操作

试验平台:Digi MF开发板

Digi提供的示例中包含了串口的示例程序,主要代码如下:

public bool EchoByte()        {            SerialPort serial;            bool exceptionRaised = false;            bool testResult = true;            string message = " This is an echo test.  Enter the character to echo, or ESC to exit. ";            byte[] encodedMessage = c_encoding.Get
收藏 打印