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 "" -t "app/#" -v -u "W4UwwC9IhIaTW1eYLRCS" -P "smPcdNxtLkVtSmfcHcoY" comand.

But if we try to use:
client = new MqttClient("");
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 ?

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

Current Time: Sun Jul 25 00:25:19 GMT 2021

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

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

Back to the top