Skip to content
Advertisement

Tag: mqtt

VerneMQ single publish messages lost when client is offline

I am quite new to MQTT and brokers, but I am having an issue with VerneMQ not sending offline messages to clients. Here is my setup. I have a backend written in Python which is using the Paho Eclipse MQTT library’s single() method to send messages to a connected client. The client, a virtual machine on my development station, has

Paho MQTT Python Client: No exceptions thrown, just stops

I try to setup a mqtt client in python3. This is not the first time im doing this, however i came across a rather odd behaviour. When trying to call a function, which contains a bug, from one of the callback functions (on_connect or on_message), python does not throw an exception (at least it is not printed), it just stops

MQTT Python-Client disconnect ungracefully

I wrote basic MQTT python-client. But it disconnect ungracefully without giving any error. When i look event log file i found it’s connected and same time is disconnected ungracefully. Here i attached a snap of event log also. Answer @MikeScotty’s answer is not right. What’s missing is starting the MQTT network loop. The loop needs to be started to handle

Advertisement