Questions tagged [mosquitto]

An Open Source MQTT v5/v3.1/v3.1.1 Broker

Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for internet of things/machine to machine messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino

Use this tag if your question addresses issues with the C or C++ API, or with the message broker itself.

For questions on the wire-protocol use

mosquitto.org

1438 questions
11
votes
2 answers

How do you set up encrypted mosquitto broker like a webpage which has https?

I'm trying to setup a mosquitto broker which is encrypted using ssl/tls. I don't want to generate client certificates. I just want an encrypted connection. The man page only described the settings which are available, not which are needed and how…
Gussoh
  • 799
  • 1
  • 6
  • 13
10
votes
2 answers

How to send binary data?

I am using Mosquito MQTT server to broadcast messages. How can I send a binary data (not text)? Example: mosquitto_pub -t test -m 0x452343 Should be received as: 0100 0101 0010 011 0100 0011
Mercury
  • 1,886
  • 5
  • 25
  • 44
10
votes
3 answers

Using MQTT with multiple subscribers

I'm using mosquitto (http://mosquitto.org/) as an MQTT broker and am looking for advice on load balancing subscribers (to the same topic). How is this achieved? Everything I've read about the protocol states that all subscribers to the same topic…
bzo
  • 1,532
  • 7
  • 27
  • 40
9
votes
2 answers

Setting up Mosquitto on home server

I'm struggling with exposing Mosquitto that I setup on my Centos7 homeserver to the outside internet through my router. Mosquitto runs fine on my localhost and post 1883 on the homeserver. I am able to pub/sub, and it is listening on the port as…
Arun Ramachandran
  • 241
  • 1
  • 6
  • 14
9
votes
2 answers

Mosquitto vs eclipse paho client library

I'm just looking into the details of Eclipse PAHO and Mosquitto client libraries (MQTT C++ libraries). It looks like the PAHO uses the mosquitto MQTT broker but provides its own MQTT client libraries. Also the Mosquitto library provides a way to…
Panch
  • 1,097
  • 3
  • 12
  • 43
9
votes
2 answers

How do I enable both TCP and web sockets in Mosquitto?

I have used the Paho Library to implement messaging through MQTT. In my mosquitto.conf file, I have the following: listener 1883 protocol websockets This configuration is working for web applications. When I tried to connect using Android and iOS…
rekha s
  • 577
  • 5
  • 7
  • 24
9
votes
4 answers

How to use MQTT over the internet?

Currently, I'm successfully running a mosquitto broker, subscribing to topics and publishing messages with clients in a local network. How can I communicate with another local network which is located at a different IP address? Should I set up 2…
Jorn.Beyers
  • 1,784
  • 2
  • 21
  • 26
9
votes
3 answers

mqtt mosquitto linux connection limit

How are users getting past a 1024 connection limit in Linux in association with doing MQTT for push notification? I am using Mosquitto server, which I think I read does not have a 1024 connection limit built into the linux version. So, can I use a…
Daniel Guillamot
  • 843
  • 2
  • 9
  • 18
8
votes
1 answer

How to get MQTT subscriptions

As a MQTT client I want to know how can I get subscriptions(TOPICS): I use Paho library and java as a client, with connecting with setCleanSession(false) so the client subscriptions(TOPIC) keeps in MQTT broker after disconnecting, if the topic…
8
votes
2 answers

Adding Users in MQTT Broker

I have an MQTT broker running in Ubuntu 16.04. My question is that how I can add users while the broker is running? When I add a user using mosquitto_passwd -c /etc/mosquito/pwfile user2 The user does show up in pwfile but I am not able to access…
Nauman Shakir
  • 135
  • 1
  • 3
  • 15
8
votes
2 answers

Difference between port and listener in MQTT

I have installed mosquitto client for MQTT on my local machine. I have below configuration: listener 1883 protocol mqtt listener 9001 protocol websockets What is the difference between running client on mqtt and websockets. Also what is the…
Aquarius24
  • 1,806
  • 6
  • 33
  • 61
8
votes
4 answers

Mosquitto reload config file

I want to reload the mosquitto password file when it is changed. Is possible to send SIGHUP ("signal hang up") or some equivalent to mosquitto server on windows?
puko
  • 2,819
  • 4
  • 18
  • 27
8
votes
2 answers

Restarting the mosquito broker

I have installed mosquito broker on my mac using brew install mosquitto. Normally I don't give any commands to start the mosquitto server. It is started automatically when I switch on my mac. I have verified that it is running by using the command…
8
votes
2 answers

Read .db file in Mosquitto

I'm using Mosquitto Project (http://mosquitto.org), this is my mosquitto.conf persistence_file mosquitto.db persistence_location C:/var/lib/mosquitto/ After running, I have got mosquitto.db, but I can't open it. I'm trying open with Microsoft…
user958752
  • 91
  • 2
  • 2
  • 4
7
votes
1 answer

Mosquitto: Outgoing messages are being dropped

First, I'll start by telling that this question is a refinement of Mosquitto not propagating messages to AWS IoT using bridge configuration, so lots of context and logs could be found on that question too, but I decided to start a new one as I guess…
gvasquez
  • 1,919
  • 5
  • 27
  • 41
1
2
3
95 96