Index of Module mqtt - part-cw/lambdanative GitHub Wiki
Module: mqtt
Module mqtt provides functions for the machine-to-machine (M2M)/"Internet of Things" connectivity protocol. MQ Telemetry Transport (MQTT) uses a publish-subscribe messaging pattern, which requires a message broker to enable the communication between MQTT clients. The broker is responsible for distributing messages to interested clients based on the topic of a message.
This implementation adds automated reconnection in the event of a disconnect, and automatic resubscription to subscribed topics.
Note: This requires libcrypto, libssl, and libmosquitto to be included in the applications LIBRARIES file.
Functions in this module:
| Function | Short Description |
|---|---|
| (make-mqtt . args) | Create and return an MQTT instance |
| (mqtt-reset t . args) | Reset an MQTT instance |
| (mqtt-subscribe t topic qos) | Subscribe to an MQTT topic |
| (mqtt-unsubscribe t topic) | Unsubscribe from an MQTT topic |
| (mqtt-publish t topic msg qos retain) | Publish an MQTT topic |
| (mqtt-destroy t) | Destroy an MQTT instance |
| (mqtt-connected? t) | Check if MQTT instance is connected |