wotpy.protocols.mqtt.handlers.ping
MQTT handler for PING requests published on the MQTT broker.
Classes
|
MQTT handler for PING requests published on the MQTT broker. |
- class wotpy.protocols.mqtt.handlers.ping.PingMQTTHandler(mqtt_server, qos=1)
Bases:
BaseMQTTHandlerMQTT handler for PING requests published on the MQTT broker.
- async handle_message(msg)
Publishes a message in the PONG topic with the same payload as the one received in the PING topic.
- property topic_ping
Ping topic.
- property topic_pong
Pong topic.
- property topics
List of topics that this MQTT handler wants to subscribe to.