cables is under heavy development.
There might be one or another bug, please let us know about it!

MqttReceive_v2 Op


Namespace: Ops.Net.Mqtt

Op author: tim

Uses library: websocket to mqtt (Use WebSockets to connect to an MQTT Broker)

Receives a message via MQTT (IoT, subscribe, listen)

summary (oneliner)

Subscribes to a MQTT channel and receives data from it. Every time there is a new message, the output port Message will change. Needs to be connected to Ops.Net.Mqtt.Mqtt.



example patch id

youtube id

caniuse query


related ops


MQTT Object (Object)

Internally used in cables for inter-op-communication

Channel (String)

The channel you want to subscribe and receive data from, e.g. /data/sensor1/x


MQTT Object - Out (Object)

Message String (String)

Message Float (Number)

Message Boolean (boolean Number)

Topic (String)

Currently the same as the input port Channel. In MQTT you could also subscribe via wildcards, e.g. /sensor1/#, this will subscribe to /sensor1/x as well as /sensor1/y. Currently not supported…

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

MQTT Send and Receive Example

Sends a random value via MQTT to the public MQTT-broker and in the same time listens for changes on that channel /cablestest. MQTT is a great lightweight protocol to send values from one device to another, e.g. you could connect your Arduino with a cables-patch.
If you visit you can view the information being sent.

Open Example In Editor

Patches using MqttReceive_v2