Skip to main content



      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 15:42
Eclipse UserFriend
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: Sun Jun 22 08:45:32 EDT 2025

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

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

Back to the top