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
0 votes
1 answer
262 views

How to handle the connection in MQTT using Paho

I've managed to connect to my Mosquitto broker of Paho MQTT JS client. However, the client disconnects inmediately after completing the connection. Before it worked now I'm testing it doesn't work. ...
user avatar
  • 169
0 votes
2 answers
105 views

Determine state before publish

I have a mosquitto MQTT broker on a Raspberry Pi. I have some topics from a client in this format SolutionCommand/state as an array 110001. In other hand I can invoke some publish topics like ...
user avatar
  • 169
2 votes
1 answer
634 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 ...
user avatar
  • 169
2 votes
2 answers
151 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 ...
user avatar
1 vote
0 answers
133 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 ...
user avatar
  • 11
1 vote
0 answers
140 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 ...
user avatar
0 votes
1 answer
147 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 ...
user avatar
3 votes
1 answer
2k 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(...
user avatar
  • 317
0 votes
1 answer
387 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 ...
user avatar
5 votes
1 answer
3k 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 ...
user avatar
  • 393
1 vote
0 answers
604 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 ...
user avatar
2 votes
1 answer
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....
user avatar
  • 165
4 votes
0 answers
2k 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 ...
user avatar
  • 273
4 votes
1 answer
2k 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 ...
user avatar
  • 273
1 vote
1 answer
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, ...
user avatar
4 votes
1 answer
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 (...
user avatar
  • 783
6 votes
1 answer
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....
user avatar
2 votes
1 answer
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) ...
user avatar
5 votes
0 answers
239 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 ...
user avatar
  • 151
6 votes
1 answer
298 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 ...
user avatar