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
-1
votes
1 answer
Apache Camel paho socketFactory setting
I am have created the camel route which use camel-paho component to consume MQTT stream. It is enabled with SSL and i need to pass the socket-factory. I went through the documentation od camel-paho and below parameter is available
socketFactory…

Girish Bhat M
- 392
- 3
- 13
-1
votes
1 answer
Simulated IoT with MQTT
so I am having some issues with the publishing / subscribing part of my code. Completely new, so forgive the ignorance. :)
I am using Mosquitto.
THIS PART SIMPLY GENERATES SOME RANDOM TEMPERATURES:
from random import random
class…
-1
votes
2 answers
How do I insert values into a sql table using python3?
I'm trying to setup a MQTT client using the Paho library. With that there are no problems, but I'm trying to insert the received publishes in a sql database. I'm converting the received payload string into a dictionary and add a few entries. When…

Nordmann1861
- 21
- 6
-1
votes
1 answer
import python modules and access to MQTT ports
In pythonanywhere Can import the modules listed below and access to the MQTT TCP/IP ports 8883 and 1883?
import paho.mqtt.client as paho
import ssl
import json
import binascii
#
import time
import thingspeak
import random

user1979320
- 1
- 1
-1
votes
1 answer
How to use MQTT concept in FLASK REST API?
I have a requirement where will have a POST api call ,read the json data from this and publish the messages to this topic "/home/floor_1/room" before publishing need to connect to the broker also and then return a success response .
Project…

Vivek Kumar
- 159
- 3
- 13
-1
votes
1 answer
How do I send MQTT over websocket w/ paho when I have an HTTP proxy? (java client)
I am trying to connect to an external endpoint, but traffic to external endpoints has to be forwarded through an http proxy. How do I do this in the paho Java client? I can't find their Authenticator/know what to set to make this work. You can set…

Andrew
- 6,295
- 11
- 56
- 95
-1
votes
1 answer
Publish MQTT message via javascript
I'm trying to publish a MQTT message via javascript using the Paho MQTT js client:
gClient = new Paho.Client("192.168.178.34", 9001, "clientId");
gClient.send("mytopic", "myvalue", 1, true);
As I can see in another MQTT client, the message is…

Boris
- 8,551
- 25
- 67
- 120
-1
votes
1 answer
Client that uses both MQTT and MQTT-SN
I am wondering if there is anyway to create a client that subscribes from a broker using MQTT and publishes to another broker, through a gateway, using MQTT-SN?

Tom Tom
- 11
- 2
-1
votes
2 answers
Google IoT devices going into idle mode even with KeepAlive running
After 20 minutes the devices take around 15 seconds to respond (an unacceptable time to the project). After a command, the next ones respond in a maximum of 5 seconds (an acceptable time).
I'm using a device with Paho MQTT and connecting myself as…

bruno
- 91
- 2
- 12
-1
votes
1 answer
Send data via ssl from docker container with python paho.mqqt
I have a docker python script with a paho.mqqt client.
import json
import ssl
import paho.mqtt.client as mqtt
# connection parameters
broker = "111.11.111.111"
port = 5000
topic = "v1/devices/me/telemetry"
device_token = "111"
# message…

p2w2_iav
- 81
- 1
- 8
-1
votes
1 answer
Mqtt when I publish the first message, it does not stay on queue
I publish the message, it does not stay on queue. Once subscribe, the message queue starts to stay. I want to keep the message in the queue even if the user is not subscribed at all. I am using qos = 1.

ahmet
- 3
- 1
-1
votes
2 answers
Kivy+mqtt-When on_message,Fatal Python error: (pygame parachute) Segmentation Fault
I'm using kivy 1.11.0 with python 2.7.15.
#-*- coding: utf-8 -*-
import paho.mqtt.client as mqtt
from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.image import Image
from kivy.lang import…

3tori
- 11
- 2
-1
votes
1 answer
how many possible clients and subscription possible im mosiquitto broker
how many clients and subscription is possible in mosquito broker. which runs on amazon ec2 t2 micro. What is maximum subscription possible . If there how to overcome it

nithish albin
- 61
- 1
- 9
-1
votes
1 answer
Behaviour setTimeToWait() method in java paho library
I use library paho for connectivity with mqtt broker, sending messages and almost everything work fine, but i have problem with setTimeToWait() method. it does not metter how many milliseconds i put into method setTimeToWait(2000) or…

Konstantin Kotov
- 3
- 2
-1
votes
2 answers
Paho MQTT client local address and port
My question is simple.
I want to know how to fix port client has.
According to Eclipse documents and IBM's, User has to fix broker address(this is absolutely natural). But There are no mentions about way of how to fix client site…

Jason
- 371
- 5
- 9
- 17