Module mod_mqtt

Link MQTT messaging with Zotonic module callbacks.

Copyright © 2013-2018 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Link MQTT messaging with Zotonic module callbacks

Function Index

'mqtt:model/+/delete/#'/2Handle 'delete' request for a model.
'mqtt:model/+/get/#'/2Handle 'get' request for a model.
'mqtt:model/+/post/#'/2Handle 'post' request for a model.
'mqtt:test/#'/2
module_callback/3Call the module subscription function using the context of the publisher.
observe_action_event_type/2Handle the {live ...} event type.
observe_module_activate/2

Function Details

'mqtt:model/+/delete/#'/2

'mqtt:model/+/delete/#'(Msg::mqtt_packet_map:mqtt_packet(), Context::z:context()) -> ok | {error, term()}

Handle 'delete' request for a model

'mqtt:model/+/get/#'/2

'mqtt:model/+/get/#'(Msg::mqtt_packet_map:mqtt_packet(), Context::z:context()) -> ok | {error, term()}

Handle 'get' request for a model

'mqtt:model/+/post/#'/2

'mqtt:model/+/post/#'(Msg::mqtt_packet_map:mqtt_packet(), Context::z:context()) -> ok | {error, term()}

Handle 'post' request for a model

'mqtt:test/#'/2

'mqtt:test/#'(Msg::mqtt_packet_map:mqtt_packet(), Context::z:context()) -> ok

module_callback/3

module_callback(Module::module(), Function::atom(), X3::map()) -> any()

Call the module subscription function using the context of the publisher

observe_action_event_type/2

observe_action_event_type(Action_event_type, Context) -> any()

Handle the {live ...} event type.

observe_module_activate/2

observe_module_activate(Module_activate, Context) -> any()


Generated by EDoc