Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

For questions concerning the MQTT messaging protocol, a lightweight TCP/IP-based system for machine-to-machine communication.

3
votes
0answers
11 views

Send values from HomeAssistant to ESP8266 via MQTT

I would like to send values from the HomeAssistant to an ESP8266 via MQTT. I have already successfully done it the other way around (sending temperature values from the ESP to HomeAssistant via MQTT) ...
3
votes
1answer
22 views

What is the difference between bandwidth consumption and speed of IoT protocols?

If IoT protocol has small bandwidth consumption, does that mean its speed is slower? I heard that MQTT is perfect for when we are restricted in bandwidth, but does that make it slower?
4
votes
2answers
32 views

MQTT multiple topics vs. bigger payload

I am wondering about best practices of topic naming and payload design of mqtt messages. Is it better to have multiple and long topic names instead and a bigger payload or short topic name with ...
5
votes
1answer
48 views

mqtt publish/subscribe key exchange?

I'm realy a newbie in cryptography, I want to do MQTT payload encryption with AES, i've done it with PyCrypto library, but i'm still wondering how I can encrypt AES key before sending it to the ...
2
votes
0answers
36 views

Create an IoT App for iPhone [closed]

After a year of testing, my IoT project come to an end. It operates mainly on RPI0 using Python code, and ESP32 using MicroPython code, all connected using MQTT protocol running on RPI3. Now i;m ...
4
votes
1answer
26 views

How to register an IoT device to a user account

I'm designing on an IoT device that connects to a web server and publishes/subscribes to the MQTT service. Users download an iOS app to setup/register/use their device. Question: What's the ...
6
votes
2answers
104 views

Free MQTT brokers

Are there any limitations ( mainly amount of messages) when using free MQTT server ( such as iot.eclipse.org ), that causes from time to time not to publish messages? I have 2-3 device connected at ...
2
votes
1answer
19 views

mosquitto - bridging options for remote client identifier

From mosquitto.conf, the following options (among many others) exist for bridging. connection name This variable marks the start of a new bridge connection. It is also used to give the bridge a ...
2
votes
1answer
55 views

How to convert messages between CoAP and MQTT protocols?

I am a master student and my topic is about making protocol conversion among IoT communication protocols for example between CoAP and MQTT in order to make the devices that use MQTT protocol to ...
2
votes
0answers
37 views

Mosquitto service won't start

I have an AWS EC2, Ubuntu-16.04 instance where Mosquitto is installed. I noticed that, the mosquitto process dies out and nothing apparent seems to be appear in the log /var/log/mosquitto/mosquitto....
1
vote
0answers
71 views

How to send data to broker from arduino, sim808 using mqtt protocol

I want to send data from my arduino ATmega2560,sim808 using mqtt protocol. By executing my code, successfully connected to broker but couldn't publish message. #include "Arduino.h" int led = 13; ...
7
votes
1answer
55 views

mosquitto - Broker won't start with persistence configuration

mosquitto does not seem to like the following options for persistence. # Persistence configuration persistence true persistence_location /data/qos/ persistent_client_expiration 8h The /data/qos does ...
6
votes
1answer
44 views

KeyError while connectiong to a MQTT broker

This is my code and on the bottom is the error I keep getting. import configparser from time import localtime, strftime import json import paho.mqtt.client as mqtt config = configparser....
6
votes
2answers
102 views

Can MQTT be used for queuing?

I am building a project which has the following requirements: My hardware device (NanoPi) should access a broker for a video key. The broker should have a queue which will hold the video keys sent by ...
6
votes
1answer
59 views

node-red - Units of work

I have a MQTT Input node that kicks of database operations (SELECT and INSERT) for PostgreSQL database. The database operations are done with node-contrib-postgres-multi.Since these operations are ...
4
votes
1answer
41 views

mosquitto - persistence configuration options

I want to understand the persistence related options in Mosquitto as described here. To begin with, do these options apply only in case of QoS > 0 and/or retained messages? persistence If true, ...
8
votes
0answers
76 views

Has anyone got the transparent MQTT gateway running in Azure IoT Edge?

One of the main purposes of IoT Edge is to localize the computation of the steady state (normal conditions) to the edge rather than in the cloud. Has anyone got Azure IoT Edge working as a "...
4
votes
1answer
70 views

S3 Actions from ActiveMQ (IoT Core)

I am working on a code for ESP32 which needs to transfers data that is sent via MQTT to AWS S3 storage. Can Someone help me out on how I can achieve this ? I have setup the the client and AWS broker ...
3
votes
0answers
43 views

MQTT with TLS for TI CC3200 fails with 'Bad CA file' error

This topic seems to pop up everywhere but, without a conclusion as to how to get MQTT-TLS for CC3200 running. So, here goes one more. Goal Connect TI CC3200 board to AWS IoT broker via TLS. Steps ...
7
votes
1answer
82 views

Control arduino via MQTT

I working with several arduino board and now I need to control them via a web interface. Via web interface I want to activate GPIO. I have two ideas: Each arduino acts as web server and I can ...
5
votes
0answers
73 views

Solutions to secure MQTT-SN over UDP with DTLS (or alternatives)

We want to secure the transport of MQTT-SN messages send over UDP e.g. with DTLS. Searching the internet showed that there are considerations and activities on using DTLS to secure the transport of ...
9
votes
1answer
68 views

MQTT always connected and 4G data load

I'm working on an IoT project that involves thousands of MQTT clients that are connected to a broker (mosquitto) via 4G/WiFi router/modem. Less than 10 clients are connected to the same router, and ...
7
votes
1answer
90 views

How to make mosquitto to update topics in database not from memory?

As suggested in another question, we have added destination path as db and autosave_interval as 3000, but after few days memory is getting reducing automatically. Please let me know if there is any ...
7
votes
1answer
47 views

Device authentication

How should I authenticate my device? I have an arduino yun, running an "daemon" on the OpenWRT side. The daemon reads commands from my message broker, executes them, and returns the value. Before ...
3
votes
1answer
46 views

mosquitto - allow_anonymous false shows connected message

I have set the acl_file property in /etc/mosquitto/mosquitto.conf to /home/ubuntu/my.acl. In the ACL file, I have allow_anonymous false to disallow connections from clients that do not have user name. ...
4
votes
1answer
91 views

Connecting a SIM800L to a IBM BlueMix Server via MQTT

I am trying to connect a IoT node to a IBM IoT server via MQTT/GSM. I am using a Sim800L GSM module, and a serial USB device to send the commands to module from my computer. Later on, I will use the ...
4
votes
1answer
218 views

SSL/TLS connection to Mosquitto broker from Android app

I have configured the mosquitto mqtt broker on a raspberry pi via this link SSL/TLS Client Certs to Secure MQTT I have the ca.crt,client.crt and client.key. How do I use them in android? It would be ...
2
votes
1answer
52 views

MQTT protocol between RPi and sim808

I have an mqtt broker installed on RPi. I want to send data meseaured from a sensor attached to Arduino to the broker in the RPi. For this I am using a sim808. I know that mqtt works in LAN how can I ...
4
votes
1answer
51 views

Network type for streaming from RPi to several ESP8266 modules

I would like to host a web page from a RPi that has websocket controls that update in 'real time' such as a slider that transmits its value as you move it. I then want to broadcast the values to ...
7
votes
0answers
75 views

Mosquito MQTT Thingsboard and Thingsboard IoT-gateway on same server

It would be much appreciated if someone could tell me the settings to run Mosquito MQTT and Thingsboard with Thingsboard IoT-gateway on the same server. Mosquito is receiving on port 1883 which is ...
4
votes
3answers
58 views

Multiple agents authentication to MQTT

I am building a small IoT platform. I have a webapp reading data from MongoDB. There is a worker that reads from MQTT and stores the data to mongo. Until here, all good. I want to be able to ship an ...
4
votes
0answers
57 views

How to monitor extra MQTT information with Home Assistant?

I am thinking out the software part of my home automation and was planning to use: MQTT as a backbone (this is a requirement as all my devices (ESPURNA based switches or my own devices) use MQTT as ...
5
votes
2answers
99 views

Local and distant MQTT communication

In my project I have a set of sensors in a local network that should communicate with a Raspberry Pi 3 and then with a distant MQTT broker. Since I'm using ESP8266 for the sensor nodes I thought I ...
1
vote
1answer
291 views

How to cross compile Paho-MQTT-C library for ARM? [closed]

How to for cross compiling Paho-MQTT C library for ARM platform. Here are the steps I followed. 1) Downloaded library from [https://github.com/eclipse/paho.mqtt.embedded-c][here] 2) after download, ...
3
votes
1answer
179 views

How to process the MQTT queue once?

I am developing a helper app to clean the retained messages on my Mosquitto MQTT service. The problem I have is how to process the queue once with Paho MQTT. I know how to block the thread (...
5
votes
0answers
111 views

Tasker MQTT to adafruit.io unreliable, how do I troubleshoot?

Overview I'm running Tasker on my Android phone in an attempt to control lights in my apartment through MQTT via adafruit.io. It works, sometimes. I want to make it work every time, but I don't know ...
5
votes
0answers
64 views

Moquette MQTT server more than 1024 connections

Anyone know what the configurations are which allow moquette to service more than 1024 connections? None of the files in config/ seem to help. Even though our "open file" limit is much higher for the ...
4
votes
0answers
125 views

Issue with Google IoT MQTT bridge

We have an IoT based application device which is configured to communication with our Dashboard via MQTT bridge from Various service providers like Google, AWS and Azure. So the flow is, Device ...
1
vote
0answers
340 views

Internet of Things: ThingsBoard.io

I am in a middle of an IOT project. I have to design the dashboard. I am facing difficulties in setting up the dashboard. I am using thingsboard.io I want to know how to send data from thingsboard ...
5
votes
1answer
137 views

Can mosquitto publish the IP of clients?

I have several devices talking to my Mosquitto MQTT broker and when listening to incoming messages I get all relevant information except the IP of the subscribed client. Is it possible to configure ...
3
votes
0answers
72 views

What are the hubs for non-WiFi, DIY/open/hackable devices?

I would like to future-proof my home automation architecture Today, I have a very decentralized setup: an MQTT broker (Mosquitto) WiFi switches: two on-the-wire ones (Sonoff Basic) and one wall ...
6
votes
1answer
227 views

How to add payload to a posted MQTT topic?

I am experimenting with node-red, connecting it to my MQTT broker. The input (listening to a topic) works fine. I also would like to send to a topic some payload ipon some triggers. In the example ...
8
votes
1answer
234 views

Are there standardized MQTT topics?

I am new to MQTT (and home automation in general, I am much more in the systems and dev side), flashed a WiFi switch (Sonoff Basic), connected it to an instance of Mosquitto and Home Assistant and so ...
3
votes
1answer
53 views

Eclipse solutions without a gateway

I'm currently reading the Eclipse IoT documents for a big scale company. Knowing that having a Raspberry as a Gateway means more costs, do you guys think that Eclipse solutions for a MQTT connection ...
5
votes
3answers
165 views

MQTT Connection Using Keep-Alive > 5 Minutes Silently Disconnects on Azure VM Broker?

Summary of the issue: Connecting to test.mosquitto.org or iot.eclipse.org with a keep alive of more than 5 minutes, and everything seems to work just as expected. Connecting to my broker (both on ...
9
votes
2answers
195 views

Detecting IoT devices in web browser?

Recently I bought a couple of wifi relays from Xiaomi. While they have been solid so far, I really dislike Xiaomi's app. But, I do like the idea that it actually works both in LAN and over the ...
8
votes
1answer
306 views

3G SIM5320 support for MQTT

Looking for feedback from others who have been using the SIM53xx series modules for IoT solutions over the 3G network. I have an MQTT broker on the internet to collect data for a fleet tracking system ...
6
votes
1answer
462 views

MQTT: Can a subscriber send data to a producer asynchronously?

Scenario IoT device (currently IPv4 device) that sends via TCP socket a payload to a server once per day. The server has a public IP address, the device is behind a router/NAT. I'm going to use a ...
8
votes
2answers
573 views

Is MQTT scalable with 1000+ clients?

Scenario IoT device (currently IPv4 device) that sends via TCP socket a payload to a server once per day. The server has a public IP address, the device is behind a router/NAT. I'm going to use a ...
4
votes
0answers
69 views

Deploy Scripts to AWS-Greengrass without AWS-Lambda

Is it possible to deploy to Greengrass from another source besides Lambda? Could I possibly connect to AWS-Greengrass with a client like MQTT.fx and deploy scripts to it? I have tried several times ...