无法连接到CloudMQTT

时间:2019-06-21 07:24:34

标签: c# mqtt

我有一个CloudMQTT服务器,我想用客户端从C#连接到它 使用uPLibrary.Networking.M2Mqtt

我设法创建了一个客户端,但是它没有连接到服务器。

_client = new MqttClient("m24.cloudmqtt.com",10307,true,null,null,MqttSslProtocols.TLSv1_0);

_client.Connect("id", "someUsername", "somePassword");

这是我得到的例外情况

Exception thrown: 'uPLibrary.Networking.M2Mqtt.Exceptions.MqttConnectionException' in M2Mqtt.Net.dll

0 个答案:

没有答案
相关问题