473,385 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

mqtt publish error MQTTclient failure in C

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
0 1630

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

Similar topics

0
by: Kele | last post by:
I am currently using the free FTP code from http://www.c- sharpcorner.com/Code/2003/April/FtpClient.asp and it has been working well, however recently I have been trying to ftp large files eg....
2
by: Andante.in.Blue | last post by:
Our Access 97 database is a single-file (non-splitted, pure Access) hosted no a network server, accessed regularly by a handful of users around the office. Until recently (until the Great...
2
by: Andy | last post by:
I am new to .NET so not sure if this is the right process... Any help will be greatly appreciated. I am trying to eliminate the grey login box that pops up when Windows Authentication is used by...
0
by: archer7 | last post by:
When I try and publish my project with Vb .NET Express Beta 2, the setup program that is created comes up with the error: Unable to continue, the application is improperly formatted. Please...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
0
by: Marty Cruise | last post by:
I successfully deploy my application to 20 domain users. Only one new user is giving me a problem, although he can access all domain resources. When he clicks the installation link on the...
2
by: moondaddy | last post by:
I have a asp.net 2.0 project (vs 2005) and am trying to publish it to a folder on the same machine (the dev machine). the project (and solution) builds fine, but when I publish it, it publishes...
0
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I have not tried this before. I have been building an ASP.Net 2.0 app for some weeks now and up till now I have not had any problems publishing. I was given a Word doc to include in the app. I...
1
by: santoshsri | last post by:
Hello, While opening an excel worksheet having macros , I get Error "System Error &H8000FFFF Catastrophic failure". When I click on Ok button , I see another message box as Microsoft Visual...
0
by: =?Utf-8?B?c2VndWU=?= | last post by:
I have two projects which I try to publish together. I cannot publish the projects with one-click together because the 2nd project failed to build. However, the project builds and publishes on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.