From e68ee6ed7108094b00d634b9dbe4167c87a9d8fd Mon Sep 17 00:00:00 2001 From: Roger Light Date: Sat, 21 Dec 2013 21:39:11 +0000 Subject: [PATCH] Compatibility class for porting from mosquitto.py. --- src/paho/mqtt/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index e1d0f5c..a6da14f 100755 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -2055,3 +2055,8 @@ class Client(object): raise ssl.SSLError('Certificate subject does not match remote hostname.') + +# Compatibility class for easy porting from mosquitto.py. +class Mosquitto(Client): + def __init__(self, client_id="", clean_session=True, userdata=None): + super(Mosquitto, self).__init__(client_id, clean_session, userdata) -- 2.39.5