You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Python code to forward the MQTT messages to ES server. Some time the code stop forwarding and stays in while: True loop inside class App. When I checked for MQTT messages by subscribing from other terminal, it shows the incoming messages. It recovers only when I restart the code.
The text was updated successfully, but these errors were encountered:
PrashantPathakDB
changed the title
Python code stop forwarding
Python code stops forwarding messages
Nov 21, 2017
The Paho Python client claims to provide automatic reconnect functionality, but I haven't actually tested this.
You could try adding an on_disconnect callback to the MqttClient to see if this is the reason for the client to stop receiving updates. See https://www.eclipse.org/paho/clients/python/docs/ under 'on_disconnect()'.
If you see that the client is disconnecting due to some error but not reconnecting, I suggest raising an issue with the Paho Python client project.
I am using the Python code to forward the MQTT messages to ES server. Some time the code stop forwarding and stays in while: True loop inside class App. When I checked for MQTT messages by subscribing from other terminal, it shows the incoming messages. It recovers only when I restart the code.
The text was updated successfully, but these errors were encountered: