摘要: 1、基于C#的以太网通信对象 using System.Net.Sockets; 2、socket服务启动监听 1 # region Socket TCP 服务端 2 Socket socket = new Socket(AddressFamily.InterNetwork, SocketType. 阅读全文
posted @ 2023-07-06 22:12 逆风起降 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1、串口对象接收回调事件 1 serialPort.DataReceived += SerialPort_DataReceived; // 数据接收 2 3 void SerialPort_DataReceived(object sender, SerialDataReceivedEventArgs 阅读全文
posted @ 2023-07-06 15:21 逆风起降 阅读(5) 评论(0) 推荐(0) 编辑