Product Documentation

MQTT V3 Plug-in Reference

Previous Topic

Next Topic

Subscribing to Messages Being Received by a Different MQTT Broker

The following properties allow a Persistence Topic on one FairCom MQTT Broker to subscribe to messages that are received by a different MQTT Broker, such as another FairCom MQTT Broker, Eclipse Mosquitto, HiveMQ, etc. This means that this Persistence Topic (which is running on this FairCom MQTT Broker), can subscribe to messages that are being received by a different MQTT Broker (as long as those messages have the correct topic). This feature is optional and it only applies to the Persistence Topics that explicitly enable it. Note that by default, a c-tree message handler receives data messages only from the local FairCom MQTT Broker.

"subscribeToExternalBroker"

  • Boolean
  • Optional
  • Values: "true" or "false"
  • Defaults to "false"

If true, c-tree will act as an MQTT client and will subscribe to this Persistence Topic’s messages on an external MQTT broker.

"AlterPersistenceTopic" can modify this later.

"brokerHostname"

  • String
  • Optional
  • Defaults to "localhost".

It is the address of the external MQTT Broker.

"AlterPersistenceTopic" can modify this later.

"brokerPort"

  • Integer
  • Optional
  • Defaults to 1883.

MQTT port of the external MQTT Broker

"AlterPersistenceTopic" can modify this later.

"brokerUserName"

  • String
  • Optional

Username to log into the external MQTT Broker

"AlterPersistenceTopic" can modify this later.

"brokerUserPassword"

  • String
  • Optional

Password to log into the external MQTT Broker.

"AlterPersistenceTopic" can modify this later.

"brokerSSLCert"

  • String
  • Optional

SSL certificate to log into the external MQTT Broker.

"AlterPersistenceTopic" can modify this later.

TOCIndex