Skip to main content

MQTT

MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol designed for IoT devices and low-bandwidth, high-latency networks. AppBlocks provides built-in MQTT client support for publishing and subscribing to topics on MQTT brokers.

Overview

The MQTT feature allows your device to connect to an MQTT broker and exchange messages with other devices and cloud services. This is ideal for:

  • Sending sensor data to cloud platforms
  • Receiving commands from remote applications
  • Device-to-device communication
  • Integration with IoT dashboards and analytics platforms

Configuration

Configure the MQTT feature by setting the following properties:

  • MQTT Server: The hostname or IP address of your MQTT broker
  • Port: The broker port (default: 1883 for TCP, 8883 for TLS)
  • Client ID: A unique identifier for your device
  • Username: Authentication username (if required by broker)
  • Password: Authentication password (if required by broker)
  • Keep Alive: Connection keep-alive interval in seconds

Linking to Settings

MQTT properties can be linked to settings, allowing runtime configuration through the Web Dashboard or LUIS Mobile App.

Use these blocks to work with MQTT:

Quality of Service (QoS)

MQTT supports three QoS levels:

  • QoS 0: At most once delivery (fire and forget)
  • QoS 1: At least once delivery (acknowledged)
  • QoS 2: Exactly once delivery (assured)

See Also