422,949 Members | 1,015 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,949 IT Pros & Developers. It's quick & easy.

mqtt publish error MQTTclient failure in C

P: 1
I'm try to publish my data via MQTT in C and I'm use the sample code of ( Paho MQTT C Client Library link [http://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/pubsync.html])

and after running code I'm getting Error that "connection failed return code -1 [ MQTTCLIENT_FAILURE ]
---------------------------------------------------
I installed ActiveMQ broker in my system and testing with MQTTbox that is working properly but when I'm trying with my codeblocks IDE with same Address Client and Topic at that time I'm getting error "Failed to connect with MQTTCLIENT_FAILURE in return
May 11 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.