Module mqtt

MQTT module

Functions

client (...) Create new MQTT client instance
get_ioloop () Returns default ioloop instance
run_ioloop (...) Run default ioloop for given MQTT clients or functions
run_sync (cl) Run synchronous input/output loop for only one given MQTT client.

Tables

mqtt Module table


Functions

client (...)
Create new MQTT client instance

Parameters:

  • ... Same as for mqtt.client.create(...)

See also:

get_ioloop ()
Returns default ioloop instance
run_ioloop (...)
Run default ioloop for given MQTT clients or functions

Parameters:

  • ... MQTT clients or lopp functions to add to ioloop

See also:

run_sync (cl)
Run synchronous input/output loop for only one given MQTT client. Provided client's connection will be opened. Client reconnect feature will not work, and keep_alive too.

Parameters:

  • cl MQTT client instance to run

Tables

mqtt
Module table

Fields:

  • v311 MQTT v3.1.1 protocol version constant
  • v50 MQTT v5.0 protocol version constant
  • _VERSION luamqtt version string
generated by LDoc 1.4.6 Last updated 2020-07-09 23:06:55