摘要: MQTT协议是基于TCP协议的应用层协议 1 Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); 2 socket.Connect("127.0.0.1", 9090 阅读全文
posted @ 2023-08-12 18:21 逆风起降 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 客户端对象创建: 1 IManagedMqttClient client = new MqttFactory().CreateManagedMqttClient(); // 连接到mqtt服务器 2 IMqttClientOptions clientOptions = new MqttClientO 阅读全文
posted @ 2023-08-12 16:29 逆风起降 阅读(468) 评论(0) 推荐(0) 编辑