Commit a8a66171 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes mqtt_logger

Showing with 3 additions and 3 deletions
+3 -3
...@@ -19,7 +19,7 @@ SOFTWARE. ...@@ -19,7 +19,7 @@ SOFTWARE.
""" """
import logging import logging
import paho.mqtt.client as mqtt from paho.mqtt.client import MQTTv31
import paho.mqtt.publish as publish import paho.mqtt.publish as publish
...@@ -30,7 +30,7 @@ class MQTTHandler(logging.Handler): ...@@ -30,7 +30,7 @@ class MQTTHandler(logging.Handler):
""" """
def __init__(self, hostname, topic, qos=0, retain=False, def __init__(self, hostname, topic, qos=0, retain=False,
port=1883, client_id='', keepalive=60, will=None, auth=None, port=1883, client_id='', keepalive=60, will=None, auth=None,
tls=None, protocol=mqtt.MQTTv31, transport='tcp'): tls=None, protocol=MQTTv31, transport='tcp'):
logging.Handler.__init__(self) logging.Handler.__init__(self)
self.topic = topic self.topic = topic
self.qos = qos self.qos = qos
......
source ../ohmpy/bin/activate source ./ohmpy/bin/activate
python3 webserver.py python3 webserver.py
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment