TradingMate-MQTT Channel Configuration

By TradingMateAdmin | 2026年3月17日

MQTT Channel Configuration

MQTT is a lightweight messaging protocol commonly used in IoT devices. By configuring MQTT channels, TradingMate can interact with various devices or custom systems.

Step 1: Accessing the Configuration Page

On the front-end page, find the **Channels** menu and click the **MQTT** card to enter the configuration.

Step 2: Filling in Connection Information

Please fill in the following information according to your MQTT server information:

  • Enable: Enable the switch.
  • Host (Connection Address): Required, for example, 127.0.0.1.
.

  • Port (Connection Port): Required, e.g., 1883.
  • Transport (Protocol): Required, usually tcp.
  • Username (Username): Optional, if you have set up an account.
  • Password (Password): Optional, if you have set a password.
  • Step 3: Configure Topic

    Topics determine how messages are sent and received. You need to configure “Subscribe Topic” and “Push Topic”.

    • Subscribe Topic: The message source that TradingMate listens for.
    • Publish Topic: The target to which TradingMate sends reply messages.

    Configuration Example 1: Simple Mode

    The simplest configuration, one-to-one sending and receiving.

    • Subscription: server
    • Push: client

    Configuration Example 2: Smart Matching Mode (Recommended)

    Supports multiple device access, automatically identifies who to reply to.

    • Subscribe: server/+/up (+ represents any device ID)
    • Push: client/{client_id}/down (TradingMate will automatically replace {client_id} with the source device ID)

    Advanced Usage: If you need TradingMate to forward messages to another device (instead of replying to the device that sent the message), the message can be in JSON format and specify redirect_client_id.

    Step 4: Other Settings (Optional)

    • Clean Session: Clears the session. Defaults to true.
    • QoS: Quality of Service level. Defaults to 2.
    • TLS/SSL Encryption: If your server has encryption authentication enabled, please upload the CA certificate, client certificate, and private key file in the TLS section of the configuration page.

    Leave a Comment