Questions tagged [paho]

For questions regarding Eclipse Paho project, that provides open-source client implementations of MQTT and MQTT-SN messaging protocols aimed at applications for the IoT.

Filter by
Sorted by
Tagged with
6
votes
1answer
1k views

The MQTT Paho Python code doesn't work properly

This question is related to this one, I created the code below: import paho.mqtt.client as mqtt import time import serial # Open grbl serial port s = serial.Serial('COM3',9600) # Wake up grbl s....
6
votes
1answer
279 views

MQTT packet validity check

Is there any tool to check my generated packets for being a valid MQTT (3.1.1) packet? Background: I'm using Paho embedded (MQTTPacket) on my microcontroller to generate packets to be send over my ...
5
votes
1answer
1k views

MQTT subscribing is not working

I am working to connect my server to the clients via an MQTT broker. The MQTT client gets connected. But after publishing a message, the subscribe code receives a connection acknowledgment. The ...
5
votes
0answers
234 views

Offline messages not being send to Adafruit IoT portal by Mosquitto broker

I have a Raspberry Pi in which I have installed Mosquitto broker and MQTT. Pi is connected to sensor and I need to send this data to Adafruit IoT protal. I am able to send all the data when the Pi is ...
4
votes
1answer
1k views

MQTT messages hit queued or inflight limits, is it stated somewhere it's the oldest messages that are dropped?

I am learning MQTT in python and the protocol for QOS = 1 and 2. I'm concerned about my Raspberry Pi getting too bogged down, or if there are other unexpected problems at the server. I can see there ...
4
votes
1answer
2k 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 (...
4
votes
0answers
1k views

Paho MQTT connect() fails ungracefully if internet connection not ready, can't trap the exception

My python script turns on the Raspberry Pi's WiFi and after a short delay tries to connect with Paho MQTT. If the delay isn't long enough, it fails ungracefully. I'm using paho-mqtt version 1.4.1 ...
3
votes
1answer
1k views

Unable to publish MQTT server in an infinite while loop in Python script

I'm curious to know what the performance of an MQTT server is like. So I created this Python script: import time import paho.mqtt.client as mqtt from multiprocessing import Pool def on_connect(...
2
votes
1answer
2k views

Questions about MQTT max message size

I am using MQTT Paho, and I have 2 questions about it: How many words can I send as a payload message? For example, can I send all lines below as one payload? O1000 T1 M6 (Linear / Feed - Absolute) ...
2
votes
2answers
93 views

Python Paho MQTT 2.5 KB messages not sending for days, while 0.1 KB messages send fine

I've got powerful dual-core IoT gateways in the field with high-speed cellular modems and good internet connections, but they fail to send 2.5 KB MQTT messages to my AWS IoT message broker. My program ...
2
votes
1answer
2k views

Publish image data to MQTT not showing

I am trying to publish image data to MQTT (CloudMQTT) with following code, but the data is not appearing on MQTT, don't even see any data on MQTT broker. import identity import json import paho.mqtt....
1
vote
1answer
3k 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, ...
1
vote
0answers
68 views

Receiving MQTT publishes as files with paho

So far, I've been able to use a python script with the paho library to subscribe to a topic, and to write a single incoming message into a file. In this way, I've been able to send text files and ...
1
vote
0answers
67 views

Paho-mqtt max clients

I have a question regarding mqtt-paho and the possibility to create 10K clients using multiprocessing based process. This is my code for now (I am using multi-processing based process to create ...
1
vote
0answers
468 views

Why is Mosquitto broker and Paho client running CPU 100% on connection?

I would like to use the mosquitto MQTT broker using Websockets. I am running mosquitto version 1.6.2 on a Debian 8 server. "normal" MQTT works fine, but I am having a problem trying to connect using ...
0
votes
1answer
106 views

Python Paho MQTT doesn't work via LTE

I'm using Raspberry Pi 3 B+ with a SIM7600X 4G HAT for SMS and mobile internet connection. I want to use Paho MQTT library (it works fine), but it only works via Ethernet or Wifi. How can I use the ...
0
votes
1answer
261 views

Question about Eclipse Paho Mqtt Android Client library function "isConnected"?

I'm making an android application to communicate with a bicycle security system using android studio. The application is using the MQTT protocol to talk to a remote server which will act as the broker ...
-1
votes
1answer
52 views

Make connection between react native & raspberry & MQTT

I am currently making an IoT App that I'm trying to connect to a Raspberry Pi using MQTT. I use the react_native_mqtt package. The problem I have is that it doesn't connect. What I'm trying to achieve ...