mqtt

Camel PAHO routes not receiving offline messages while connecting back

蹲街弑〆低调 提交于 2021-01-29 19:13:52
问题 I'm using apache camel xml based paho routes for the subscription, publication process. While online, everything works fine. But I'm not able to receive the offline message. I have set the following., Constant Client ID Clean Session is FALSE, Both subscribed & published with QoS 2 With the standalone Program, it's getting all the offline messages. With the camel route it's not happening. 回答1: Finally, I was able to solve this one manually. Camel PAHO Client is not populating the callback

Exception 28 thrown on ESP8266-01 when connected to Adafruit MQTT and Telegram

孤街醉人 提交于 2021-01-29 14:17:19
问题 The title is quite self-explanatory, but I will try to explain the issue further here so as to be more precise. My code runs on an ESP8266-01 connected to a fan and is used to control it through Telegram (with its own bot) and Adafruit MQTT, from both of which it receives a command (not at the same time, it's just to have multiple ways to control the fan in case I don't have my phone by me). Anyway, this is where the problems kick in: after an indeterminate amount of time (could be 5 minutes,

Socket error on client <>, disconnecting with Paho MQTT-SN Gateway and ESP8266 CLient

痞子三分冷 提交于 2021-01-29 10:00:27
问题 I'm trying to test MQTT-SN. I'm using Mosquitto Broker, Paho MQTT-SN Gateway and this library (https://github.com/S3ler/arduino-mqtt-sn-client) for the clients. I'm using an esp8266 as a client. With this client, I can connect, subscribe, receive from subscribed topics but I cant publish into topics memset(buffer, 0x0, buffer_length); mqttSnClient.publish(buffer, publishTopicName , qos); Every time I try to publish with this client, Mosquitto gives me Socket error on client <clientid>,

Failed to find any class that implements Connector and which name matches io.confluent.connect.mqtt.MqttSourceConnector

对着背影说爱祢 提交于 2021-01-29 08:33:55
问题 curl -s -X POST -H 'Content-Type: application/json' http://localhost:8083/connectors -d '{ > "name" : "mqtt-source", > "config" : { > "connector.class" : "io.confluent.connect.mqtt.MqttSourceConnector", > "tasks.max" : "1", > "mqtt.server.uri" : "tcp://10.1.78.100:1883", > "mqtt.topics" : "Essen/IMU/IMU01", > "kafka.topics" : "Essen.IMU.IMU01" > } >}' {"error_code":500,"message":"Failed to find any class that implements Connector and which name matches io.confluent.connect.mqtt

python Mqtt subscribe how to delete first session/message

China☆狼群 提交于 2021-01-29 07:01:03
问题 I created a Mqtt subscribe with python that has HA as broker … when I make the first connection I start a series of messages of all the mqtt buttons that I connected even if I am not activating them because my subscription is "house/click/ # ". Once the list is done … if you press a button I start getting the messages I need … is there a way to delete this first list that it gives me. this is the code I use: import paho.mqtt.client as paho import pandas as pd import pyautogui import os import

IoT can't connect to the server with MQTT+TLS

天涯浪子 提交于 2021-01-29 05:47:33
问题 I use MQTT+tls to connect the IoT device to the server with GPRS supported by SIM900. The IoT device connects to the server without any problem on HTTP or HTTPs. However, When I set up the ssl proxy on the server with Tomcat,the IoT device can get status of "send ok" successfully,but always gets "wait send ok ack timeout" error. The wireshark installed on the server can't capture any useful infomation. 回答1: on SIM900 you can't use TCP+SSL. That's why you can do it with HTTPS but you can't do

Creating a thin MQTT publisher without using a stack (How To)

一曲冷凌霜 提交于 2021-01-29 02:09:13
问题 my previous research on Google led me to this page:https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html here I found some informations … and I startet trying. The testing setup is against a local mosquito. This works so far (it runs without errors), but if I send the PUBLISH message, I get disconnected from mosquito. [edit] So the big Question is, what's wrong with the message. short summary as far as I understood: [|] a Byte with High and Low 4 bits [[|][|]] a word {} a

How do I perform a secure MQTT using QtMqtt and SSL?

时光怂恿深爱的人放手 提交于 2021-01-29 02:04:57
问题 I am trying to use a QtMQtt example project simpleclient. But I want to perform a secure MQTT. How do I approach this? I have read this blog (https://www.qt.io/blog/2017/08/14/introducing-qtmqtt-protocol). But this does not help me much. Do I have to use QsslSocket's connectToHostEncrypted() or should I use QTMQTT clients's connectToHostEncrypted() If I use QTMQTT clients's connectToHostEncrypted(). It only allows me to set sslpeername. It does not allow me set certificate or private key Or

MQTT topic names for request/response

南笙酒味 提交于 2021-01-29 00:09:43
问题 I'm designing a system with many devices using MQTT to connect to a central broker. There are some masters that can send requests to certain devices that are slaves. The request from one master is usually directed to one slave. The topic for requests could be: mysystem/slaveId/req , so the slaves can subscribe to this topic and master publishes to the same topic. Only the addressed slave will receive the request, as it should be. My question is how to decide the topic for responses. I'm in

MQTT topic names for request/response

人走茶凉 提交于 2021-01-29 00:09:23
问题 I'm designing a system with many devices using MQTT to connect to a central broker. There are some masters that can send requests to certain devices that are slaves. The request from one master is usually directed to one slave. The topic for requests could be: mysystem/slaveId/req , so the slaves can subscribe to this topic and master publishes to the same topic. Only the addressed slave will receive the request, as it should be. My question is how to decide the topic for responses. I'm in