Files
weather_station_MK2/software/mqqt_to_pe1rxf_telemetry/mqtt_callbacks.py

11 lines
308 B
Python

import logging
def on_message(client, userdata, message, properties=None):
logging.info(
f"Received message {message.payload} on topic '{message.topic}' with QoS {message.qos}"
)
def on_subscribe(client, userdata, mid, qos, properties=None):
logging.info(f"Subscribed with QoS {qos}")