摘要:
MQTT协议是基于TCP协议的应用层协议 1 Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); 2 socket.Connect("127.0.0.1", 9090 阅读全文
摘要:
客户端对象创建: 1 IManagedMqttClient client = new MqttFactory().CreateManagedMqttClient(); // 连接到mqtt服务器 2 IMqttClientOptions clientOptions = new MqttClientO 阅读全文