• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Protocols - MQTT I/O
  • MQTT Broker
  • 4.11.0

Topics MQTT Tutorials

MQTT Broker

MQTT Broker

Introduction

In order to use MQTT central broker has to be choosen first. All the connection handling, buffering and re-delivery trying (at network interrupts) is managed by MQTT broker. All MQTT clients have a permanently open TCP connection to the broker.

In general, two different alternatives exist:

  1. to use some existing broker service (f.e. cloud broker):
    • easier to start with - all broker set up and maintenance is done by third-party (service provider)
    • more secure to use over Internet (no need to open your network to incoming TCP connections)
  2. to set up and use your own broker:
    • reliability and security is under your control
    • no sign up nor agreements needed with third-parties (service providers)

CDP has a simple MQTT broker component built-in.

MQTTBroker

To use CDP built-in MQTT broker MQTTBroker subcomponent must be added to CDP application.

MQTTBroker has following configurable properties:

PropertyDescription
ListenAddressAddress broker listens on (IP or hostname). Use '0.0.0.0' to listen on all network interfaces.
ListenPortTCP port broker listens on (recommended values are 1883 for unencrypted and 8883 for encrypted connections)
EncryptionBroker connection encryption. Choose between options:
  • Unencrypted - no encryption
  • TLS - Use TLS certificate based encryption and authentication. See also TLS certificate setup.
  • TLS-PSK - use TLS Pre-Shared Key based encryption and authentication. See also TLS-PSK key setup.
TLSCAFileBroker CA certificate file name for TLS encryption. See also TLS certificate setup.
TLSCertFileClient authentication certificate file name (for TLS client authentication). See also TLS certificate setup.
TLSKeyFileBroker key file name for TLS encryption (PEM certificate or PSK list). See also TLS certificate setup and TLS-PSK key setup

Topics MQTT Tutorials

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

    © Copyright 2022 CDP Technologies. Privacy and cookie policy.

    Return to top