wotpy.protocols.mqtt.handlers.ping

MQTT handler for PING requests published on the MQTT broker.

Classes

PingMQTTHandler(mqtt_server[, qos]) MQTT handler for PING requests published on the MQTT broker.
class wotpy.protocols.mqtt.handlers.ping.PingMQTTHandler(mqtt_server, qos=1)

Bases: wotpy.protocols.mqtt.handlers.base.BaseMQTTHandler

MQTT handler for PING requests published on the MQTT broker.

handle_message(msg)

Publishes a message in the PONG topic with the same payload as the one received in the PING topic.

topic_ping

Ping topic.

topic_pong

Pong topic.

topics

List of topics that this MQTT handler wants to subscribe to.