LogoLogo
  • KPN THINGS USER GUIDE
    • Introduction
    • Getting started
      • Registration and setup
      • Device simulator app
      • Connect devices
        • SIM cards
        • Supported devices and KPN Devices
        • SODAQ R412M
        • Smartrak
        • Marvin development board
        • LoPy5
        • Arduino MKR WAN 1300/1310
        • Arduin MKR NB 1500
    • All videos
    • Tutorials
      • Configure a flow
      • Connect a HTTPs destination
      • Create a simple IoT web applicationPage
      • Send instruction to LoRa DevicePage
      • Send your data to Azure SQL
      • Technical overview
        • Management data model
        • Uplink communication
        • Downlink communication
        • Location data
      • Accounts and projects
        • Customer accounts and users
        • Projects
        • Customer management
        • Cost overview and contract
    • Frequently asked
      • Multi Factor Authentication
  • GENERAL FUNCTIONS
    • Quick reference videos
    • APIs
  • THE PORTAL EXPLAINED
    • Things Manager
      • Devices
        • Bulk operations
      • Data
        • Device data graph
      • Connectivity
        • LoRa connectivity configuration
      • Bulk reports
    • Things Creator
    • Support
      • News
      • Release notes
      • Real-time status
      • Service reports
      • Documents
      • Support tickets
      • Invoices
      • Contact info
    • Shop
  • BUILDING BLOCKS
    • Devices
      • Sensors
        • KPN Conditionsensor CO2 II
        • KPN Conditionsensor CO2 III
        • KPN Conditionsensor CO2 III motionPage 1
        • KPN FillTag I
        • KPN FillTag II
        • 1M2M ED1608
        • Elsys ERS
        • Device Simulator (Mobile Phone app)
        • Generic Device (Internet connected)
        • Generic LoRa device (preset connectivity)
        • Generic LoRa device (programmable)
        • Generic M2M device
        • Generic M2M device (with Internet connection)
      • Trackers
        • KPN Global Tracker Autonomous
        • KPN Global Tracker Wired
        • KPN LocationTag I
        • KPN LocationTag II
        • KPN LocationTag II v2
        • KPN LocationTag II v2 Expert Mode
        • KPN LocationTag II v3
        • KPN LocationTag III (with GPS)
        • KPN LocationTag III (without GPS)
        • KPN LocationTag III v2
        • KPN LocationTag III v2 Buffer
        • KPN LocationTag III v3
        • KPN LocationTag III v4
        • KPN LocationTag V
        • KPN LocationTag VI
        • KPN LocationTag WS
        • Streamline LoRa
        • Streamline M2M
        • Viloc
      • Routers
      • Gateways
        • KPN FSK Basestation
      • Device SDK
    • Connectivity
      • Connecting LoRa devices
        • LoRa connectivity configuration
      • Connecting M2M devices
      • Connecting Internet devices
      • Connecting MQTT Devices
    • Data Processing
      • ThingsML and SenML
        • ThingsML
        • SenML
          • Understanding and Interpreting SenML Data
          • Changes in KPN SenML
      • Device Twin
      • Decoders and encoders
        • Common measurements list
        • Decoder migrations
        • DIY Decoder
          • DIY decoder scripts
      • Merger
      • Device data
      • Devices
    • Destinations
      • HTTPS destination
      • MQTT broker
      • Cumulocity IoT Platform
      • Azure Event Hubs
      • Azure IoT Hub
      • Test Endpoint
      • ThingsBoard
      • Datacake
      • AWS Lambda
      • Google Cloud Run functions
  • IOT LINE UP
    • Freemium
      • Test SIM cards
    • Explorer
    • Modular
    • Tailored
    • Terms and Conditions
Powered by GitBook

© 2024 KPN - All rights reserved.

On this page
  • Connect an MQTT broker
  • Variables
  • What does the connection do?
  • Trusted TLS/SSL certificates
  • Learn about MQTT
  • Test with a demo broker

Was this helpful?

Export as PDF
  1. BUILDING BLOCKS
  2. Destinations

MQTT broker

It is only possible to connect KPN Things to your MQTT broker using an encrypted connection!

Connect an MQTT broker

The following parameters are available to connect an MQTT broker:

Parameter

Description

Example value

name

*

The name of the destination

My Server

description

Description of the destination

Endpoint of my server

host

*

The host name of the MQTT broker

test.mosquitto.org

port

*

The port on which the MQTT broker allows encrypted connections

8883

username

*†

The username for KPN Things to connect to the broker

password

*†

The password for KPN Things to connect to the broker

applicationId

*

MQTT Client ID for KPN Things to connect to the broker

kpnthings

topic

*

things/%p/%d/%n

qosLevel

*

The MQTT Quality of Service desired for the connection to your broker.

Options:

  • AT_MOST_ONCE

  • AT_LEAST_ONCE

  • EXACTLY_ONCE

AT_LEAST_ONCE

messageTimeout

*

Timeout for sending a message and handling QoS in milliseconds

10000

retainMessage

*

false

*) required value †) secret value, can only be written

Variables

  • {clientUuid} Your Client UUID

  • {mqttClientId} MQTT Client ID

  • {deviceUuid} Device UUID

  • {destinationUuid} Destination UUID

  • {messageRequestId} Message request ID

What does the connection do?

  • Open an encrypted client connection to your MQTT broker.

Trusted TLS/SSL certificates

Your server should preferably use TLSv1.2 or higher, but at least TLSv1.1. Older protocols are not supported because they are not considered safe.

Learn about MQTT

Are you new to MQTT, but still interested in using it? HiveMQ has published some very nice articles about MQTT essentials:

Test with a demo broker

PreviousHTTPS destinationNextCumulocity IoT Platform

Last updated 3 months ago

Was this helpful?

The topic structure describing how KPN Things should publish data. There are several available

Whether messages send to the broker should be .

{senmlBaseName} base name

Publish all forwarded IoT data in JSON format on topics following the specified topic template.

We do not support self-signed certificates. Your TLS/SSL certificate should be signed by a root certificate authority (CA) that is trusted by the default Java trust store. You can use the to check if your certificate is trusted by the Java trust store:

You can find a publicly available Mosquitto MQTT server/broker on . This allows you to try to connect KPN Things to an MQTT broker. Do not use this public MQTT broker for production!

SenML
SenML
SSL Server Test from Qualys
https://test.mosquitto.org
retained messages
variables
he result of the SSL Server Test indicating the certificate is trusted by Java
LogoMQTT Essentials - All Core Concepts explained
Logotest.mosquitto.org