platypush.message.event.mqtt

class platypush.message.event.mqtt.MQTTMessageEvent(msg, host=None, port=None, topic=None, *args, **kwargs)[source]

MQTT message event object. Fired when platypush.backend.mqtt receives a new event.

__init__(msg, host=None, port=None, topic=None, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]