beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
op id:d00d8266-483e-4545-b19f-80a02883ac2d
Creates a MQTT connection (IoT, messaging)

summary (oneliner)

MQTT (Message Queue Telemetry Transport) is a lightweight messaging protocol which is widely used, e.g. by Facebook Messenger, for M2M (Machine to machine) communication. It used a publish-subscribe pattern to send messages from one device to another. Messages are send to so called channels (e.g. /orientation/x/1.234). Another device could then listen for this channel and get updates when data changes.

For the communication to work an MQTT-broker (server) is needed, a very good service is shiftr.io where users can create a free account which also features personal dashboards to show which data is sent around in realtime.

The MQTT-ops currently allow to publish and subscribe data, QoS and topic-wildcards are not supported yet.

Please note: User credentials can have read and write access to a data set or real-only. If you try to write out data using read-only user-credentials things will break!

doc

issues

youtube id

collections

related ops

Inputs

Client Name (string Number)

The name of your project / your name, can be freely set.


Broker URL (string Number)

The URL of the MQTT-broker. We recommend using shiftr.io


Username (string Number)

Your username to access the MQTT broker, you need to set up a user-account for that or use the public namespace try / try.


Password (string Number)

The password fitting to your username


Port (Number)

The port the MQTT-server is running on. As cables runs in a HTTPS-environment only secure ports can be used to access a MQTT-broker (MQTTWSS). Only change this if you know what you are doing.


Use SSL (boolean Number)

See Port. Should be checked for most use-cases


Reconnect (Function)

Executes a reconnect to the MQTT broker. If things don’t work out this might help. Otherwise a reload of the page can be a solution. If you enter new login-data (username / password) you also need to reconnect.


Outputs

MQTT Object (Object)

Contains MQTT-messages and general data, used for the communication between cables MQTT-ops.


Connected (Number)

If the MQTT-op connected successfully. Please note that a connection can time-out, but it will still show as connected.


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Mqtt

Public Patches using Mqtt