Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Can't get data using subscribe method
Can't get data using subscribe method [message #1792279] Fri, 13 July 2018 19:42
Sergey Vin is currently offline Sergey VinFriend
Messages: 1
Registered: July 2018
Junior Member
We get the data using mosquitto_sub -h "tek-ns-us.thingsboard.io" -t "app/#" -v -u "W4UwwC9IhIaTW1eYLRCS" -P "smPcdNxtLkVtSmfcHcoY" comand.

But if we try to use:
client = new MqttClient("tek-ns-us.thingsboard.io");
client.Connect(Guid.NewGuid().ToString(), "W4UwwC9IhIaTW1eYLRCS", "smPcdNxtLkVtSmfcHcoY");
client.MqttMsgPublishReceived += new MqttClient.MqttMsgPublishEventHandler(client_MqttMsgPublishReceived);
client.Subscribe(new string[] { "app/#" }, new byte[] { MqttMsgBase.QOS_LEVEL_EXACTLY_ONCE });

no data is coming

Can you help please ?

Thanks
Previous Topic:MQTT Client for Windows
Next Topic:MQTTClient_connect always gives -1
Goto Forum:
  


Current Time: Thu Apr 25 22:34:14 GMT 2024

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top