Questions tagged [libmosquitto]

MQTT client library maintained by Eclipse IoT project. It is written in C language.

Read Eclipse Mosquitto project overview. This MQTT client library is developed as part of Eclipse IoT mosquitto project. The client header file mainly used is mosquitto.h(1)

  1. This library also has bindings in languages like C++(mosquittopp) and Python. Those bindings are also covered under this tag.
  2. This library is different from the client library provided by Eclipse Paho project and so queries related to Paho client and it's bindings( e.g. mqttpp ) should not use this tag.
77 questions
0
votes
1 answer

How to publish data synchronously using mosquitto_publish?

I have written code (mosquitto_publish()) using Mosquitto to publish data to AWS. My problem is the sequence with which data is arriving on the MQTT broker. In the Paho client, I see waitForCompletion(), but nothing similar in Mosquitto. Would…
chinmaya
  • 91
  • 9
0
votes
1 answer

To get the data from MQTT broker by an application which data are published by MQTT client publisher

I'm using Mosquitto MQTT broker in my embedded Linux device. The current topology is like below: MQTT clients(Publishers) -------MQTT broker--------MQTT clients(Subscribers) To get the data from MQTT broker which data are published by client, shall…
Happy
  • 133
  • 8
0
votes
1 answer

Building Mosquitto MQTT auth plugin issue

I need an advanced auth for Mosquitto. I decided to use mosquitto-auth-plug However, if I follow the build instructions I have the error: $ make Selected backends: JWT Using mosquitto source dir:…
Alex Karasev
  • 1,108
  • 2
  • 13
  • 24
0
votes
2 answers

Mosquitto fire only one for each topic

I implemented a MQTT message broker using mosquitto on my network. I have one web app publishing things to the broker and several servers that subscribed the same topic. So i have a redundancy scenario. My question is, using mosquitto alone, is…
Diogo Aleixo
  • 841
  • 1
  • 8
  • 20
0
votes
1 answer

Mosquitto publisher does not publish any message

I have been trying to develop a C code using mosquitto lib to publish message on a mosquitto broker over TLS. I configured the TLS on mosquitto side and it worked fine. I was able to send and receive messages using mosquitto_pub and…
Mauro Silva
  • 181
  • 1
  • 2
  • 9
0
votes
0 answers

Including external library in Qt Application

I am using the mosquitto library in my Qt-Widget-Application under Linux with success. I wanted to do the same for Windows 7 MSVC2015 x64 but I am getting linker errors which I don't understand. Using this snippet in my .pro-file where C:\mosquitto…
user2715068
  • 51
  • 1
  • 4
0
votes
1 answer

Authenticating with mosquittopp

I am writing a simple mqtt client which will connect with a mosquitto broker. I have used the C++ wrapper (mosquittopp) of the mosquitto library to write the mqtt client. However, I don't know how to authenticate a client with username and…
shery6405
  • 105
  • 2
  • 13
0
votes
1 answer

"DSO missing from command line" while cross compiling mosquitto example

I am trying to cross-compile the mosquitto example program. At first I compiled the mosquitto example on Host PC, it worked well. The makefile is as following: CFLAGS=-Wall -ggdb -I../../lib -I../../lib/cpp LDFLAGS=-L../../lib…
J.R.
  • 769
  • 2
  • 10
  • 25
0
votes
1 answer

Linking to a .so library in cmake

I have a libmosquittopp.so in /usr/lib folder. The mosquittopp.h is inside /usr/include folder. I like to link to my project to that lib. So my CMakeLists.txt file is cmake_minimum_required(VERSION 2.6) PROJECT(MosquittoTest) # The version…
batuman
  • 7,066
  • 26
  • 107
  • 229
0
votes
1 answer

mosquitto linker error with visual studio 2015 c++ project

I use cmake to produce the visual studio project file and open project in visual studio 2015. I try to compiler libmosquitto with visual studio 2015 C++ but I got these errors. I already include the include folder of OpenSSL win32 but it still…
Hu Kenneth
  • 240
  • 2
  • 13
0
votes
1 answer

[MosquittoClient initWithClientId:]: unrecognized selector sent to instance

How do i solve this error? 2016-08-30 09:14:55.856 BBS[476:159483] -[MosquittoClient initWithClientId:]: unrecognized selector sent to instance 0x15e3ba60 2016-08-30 09:14:55.859 BBS[476:159483] *** Terminating app due to uncaught exception…
0
votes
1 answer

Mosquitto PHP runs on Terminal but does not run in Browser Error 500

I'm facing a problem developing a Mosquitto client in php. When I execute my test code through the Terminal on Ubuntu the code works very well like this: root@ip-*********:/var/www/html/pairing/mqtt# php pub.php Mesage published Disconnected…
pedro.olimpio
  • 1,478
  • 2
  • 22
  • 43
0
votes
1 answer

ActiveMq subscribed messages Delivered every time I connect with a new client ID

I am creating an iOS app in which I have used mosquito library for Integrating Active MQ. Everything is working fine except,I get all the messages again when I reconnect with new client id. cleanSession flag is set to false; Any help would be…
Sundeep Saluja
  • 1,089
  • 2
  • 14
  • 36
0
votes
2 answers

tls connection failure in mosquitto

I've generated certificates and able to make a successful connection using below command mosquitto_sub -t "hello/world" -v --cafile ../certs/ca.crt --cert ../certs/client.crt --key ../certs/client.key While I'm try to do the same with my code using…
tez
  • 4,990
  • 12
  • 47
  • 67
0
votes
0 answers

libmosquitto and bcm2835 library for implementing IOT

I am working with an IOT based project on raspberry Pi. My project consists of temperature/humidity sensor with zigbee transmitter module(Adam 2017) and a raspbee zigbee receiver, used for reception. The raspbee is interfaced serially with Pi and Pi…
user2995743
  • 99
  • 1
  • 4