Skip to content

MQTT trigger#

MQTT is an open OASIS and ISO standard lightweight, publish-subscribe network protocol that transports messages between devices.

Credentials

You can find authentication information for this node here.

Examples and templates

For usage examples and templates to help you get started, refer to n8n's MQTT Trigger integrations page.

Example Usage#

This workflow allows you to receive messages from a queue using the MQTT Trigger node. You can also find the workflow on the website. This example usage workflow would use the following node.

The final workflow should look like the following image.

A workflow with the MQTT Trigger node

1. MQTT Trigger node#

  1. First of all, you'll have to enter credentials for the MQTT Trigger node. You can find out how to do that here.
  2. Enter the name of the topic in the Topics field.
  3. Click on Test step to run the workflow.

Activate workflow for production

You'll need to save the workflow and then click on the Activate toggle on the top right of the screen to activate the workflow. Your workflow will then be triggered as specified by the settings in the MQTT Trigger node.