Paho is an Eclipse project has been created to provide scalable open-source implementations of open and standard messaging protocols like MQTT aimed at new, exisiting, and emerging applications for Machine-to-Machine (M2M) and Internet of Things (IoT).
Questions tagged [paho]
1173 questions
7
votes
7 answers
java.io.EOFException with paho
i want to make stress test on mosquitto, so i create some code as below
for (int i = 0; i < 800; i++) {
final int j = i;
Thread t = new Thread(new Runnable() {
@Override
public void run() {
…

tom
- 71
- 1
- 1
- 3
6
votes
1 answer
Exception in thread "main" java.lang.IllegalArgumentException: no NetworkModule installed for scheme "http" of URI "http://xxx.xxx.xxx.xxx:xxxx"
I'm currently using on MQTT eclipse/paho.mqtt.java library for my project. this is the link of eclipse/paho.mqtt.java library.
https://github.com/eclipse/paho.mqtt.java
I wanted to connect with MQTT with http protocol. but the original library make…

Hilton
- 337
- 6
- 19
6
votes
1 answer
How to check if subscriber is valid to accept the message received for a published topic on MQTT
I'm newbie in MQTT.
I am implementing MQTT in java and I am using below code for publisher to publish to a particualr topic,
public void publish()
{
MqttClient myClient = null;
MqttConnectOptions connOpt;
…

user1660325
- 747
- 4
- 20
- 35
6
votes
1 answer
Integrate Paho MQTT with Django
I am doing a project which use Django and MQTT. There is a situation that I want to re-subscribe all topics relating to models in database when my Django web server reconnect to the broker after disconnecting for some reason. I have the model Room…

Q.Nguyen
- 171
- 1
- 8
6
votes
0 answers
SSL/TLS certificate pinning in paho-Eclipse mqtt Android
I was able to perform MQTT connection to Broker without TLS/SSL certificate using paho{ mqttv3:1.1.0 } Service. However, when I tried pinning SSL certificate in Android it's not working. Please help me in solving the issue. Attaching code for more…

GOKUL
- 111
- 1
- 8
6
votes
3 answers
Unlimited keepalive in MQTT
Currently developing something like "smart home" and I have few different devices in my home. All of them connected to OpenHab via MQTT. I'm using Paho MQTT library (Python) for my purposes.
Generally, MQTT has "keepalive" property. This property…

user922871
- 435
- 2
- 6
- 17
6
votes
1 answer
python paho mqtt client connection through ssl/tls giving an error
I am trying to connect my python paho mqtt client to my broker through tls using my own certificate authority. I generated necessary files and configured my RabbitMQ broker to use them. My idea is that the client authenticates the server but client…

sergei
- 157
- 3
- 9
6
votes
1 answer
published message store by mosquitto broker when subscriber is offline with QOS=2
My both publisher and subscriber are both connected to mosquitto (paho) broker with QOS=2 and maintaining persistent session by clean_session=false. When i publish message with subscriber connected to broker, it successfully received by subscriber,…

Himanshu mittal
- 155
- 5
- 16
6
votes
1 answer
python mqtt script on raspberry pi to send and receive messages
MQTT question:
Hi, I’m trying to set up a MQTT network between multiple Raspberry Pis (starting with two).
I have one raspberry pi (RPi-A), MQTT client, with a thermistor sensor attached and one raspberry (RPi-B), MQTT broker/client, acting as a hub…

Tullio_IRL
- 99
- 1
- 2
- 9
6
votes
1 answer
Unbind external service android Paho MQTT ServiceConnectionLeaked error
What's the proper way to unbind an external service (located in another jar) file in Android?
I declare the service (located in org.eclipse.paho.android.service-1.0.2.jar) in the manifest file as:

ᴘᴀɴᴀʏɪᴏᴛɪs
- 7,169
- 9
- 50
- 81
5
votes
1 answer
Does on_message in paho mqtt run in a new thread?
Lets assume I have subscribed to some topic and the mosquitto server is continuosly publishing some message on that topic.
How does the on_message method get invoked when a new message arrives from mosquitto broker? Does it run on the main thread…

The Entity
- 157
- 1
- 10
5
votes
2 answers
MQTT: javax.net.ssl.SSLHandshakeException: No subjectAltNames on the certificate match
I'm trying to connect with server via paho client (version which I'm using is org.eclipse.paho.client.mqttv3-1.2.1.jar)
When I try to connect I'm getting:
"MQTT: javax.net.ssl.SSLHandshakeException: No subjectAltNames on the
certificate…

kavie
- 2,154
- 4
- 28
- 53
5
votes
2 answers
Paho MQTT: Possible importing error?
I recently downloaded paho-mqttvia yarn. The problem is I am not sure if I am importing it correctly, because I am getting an error:
Cannot read property 'Client' of undefined
The way I am importing and using it is like this:
import Paho from…

user8951490
- 833
- 1
- 10
- 21
5
votes
1 answer
how to add Paho-MQTT to android studio
I am trying to use Paho-MQTT in android studio. I referred to this link
and I should add the following to gradle files
the link demands adding the following:
repositories {
maven {
url…

Amrmsmb
- 1
- 27
- 104
- 226
5
votes
1 answer
'window is not defined' when testing Paho MQTT Client with mocha and typescript
I googled for days but can't find anything about how to test the Paho MQTT Client. I tried it in a sort of naive way, like that:
import { suite, test, slow, timeout, skip, only } from 'mocha-typescript';
import chai = require('chai');
var jsdom =…

jlang
- 929
- 11
- 32