INNER CODE UNIT · Python
on_subscribe
sabuhish/fastapi-mqtt · fastapi_mqtt/fastmqtt.py:326
def on_subscribe(self) -> Callable[..., Any]:
"""
Decorator method is used to obtain subscribed topics and properties.
"""
def subscribe_handler(handler: MQTTSubscriptionHandler) -> MQTTSubscriptionHandler:
self._logger.debug("on_subscribe handler accepted")
return self.mqtt_handlers.on_subscribe(handler)
return subscribe_handler