Question
· Oct 6

MQTT IRIS Broker

Hi Guys,

I'm looking to setup an MQTT adapter that also acts as broker to connect directly to an MQTT clients, is there an IRIS adapter or client that can be used as Broker as well?

 

Thanks

Product version: IRIS 2024.3
Discussion (1)2
Log in or sign up to continue

InterSystems IRIS includes support for MQTT through built-in adapters for message processing, which can act as both inbound and outbound adapters. However, InterSystems IRIS itself does not natively include an MQTT broker. Below are the details about how IRIS handles MQTT connections:

  1. MQTT Adapters:

    • The EnsLib.MQTT.Adapter.Inbound adapter allows subscribing to topics and receiving MQTT messages.
    • The EnsLib.MQTT.Adapter.Outbound adapter allows publishing messages to MQTT topics.
    • These adapters can be used to build interoperability productions to handle MQTT messages effectively. This includes creating and subscribing to topics, custom business services, and operations to process the messages [1][2].
  2. IRIS-integrated MQTT Broker:

    • While IRIS itself is not an MQTT broker, a few IRIS-integrated MQTT broker solutions are available, like IRIS MQTT for Manufacturing and IRIS MQTT for Health. These solutions provide an integrated broker functionality directly managed within the IRIS platform, removing the need for middleware [3][4].
  3. Working with IRIS MQTT Adapters:

    • Custom business services can use the MQTT inbound adapter to consume messages.
    • Similarly, the outbound adapter is used to publish messages to specified brokers and topics [5][6].
  4. Broker Setup:

    • If you require an actual MQTT broker, you need to configure one externally (e.g., Eclipse Mosquitto is widely used), or you may explore IRIS-integrated MQTT broker solutions for manufacturing or healthcare [1][4].
  5. Using the MQTT Adapters:

    • InterSystems provides tools to define the connection details (e.g., broker's URL, credentials, topics) and manage message flow between devices and IRIS components [7].

If your goal is to integrate with an existing broker, or connect clients directly to IRIS over MQTT intermediates, additional configurations or external intermediary brokers might be required based on your use case.

Sources: