We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e35bf21 commit 99587f0Copy full SHA for 99587f0
examples/mqtt_handler.py
@@ -3,6 +3,7 @@
3
"""
4
5
import adafruit_minimqtt.adafruit_minimqtt as MQTT
6
+
7
# adafruit_logging defines log levels dynamically.
8
# pylint: disable=no-name-in-module
9
from adafruit_logging import NOTSET, Handler, LogRecord
@@ -12,6 +13,7 @@ class MQTTHandler(Handler):
12
13
14
Log handler that emits log records as MQTT PUBLISH messages.
15
16
17
def __init__(self, mqtt_client: MQTT.MQTT, topic: str) -> None:
18
19
Assumes that the MQTT client object is already connected.
0 commit comments