The New Third-Party MQTT Integration on Datacake IoT Platform
Making MQTT on an IoT platform easier than ever before
Datacake offers a completely new integration for third party MQTT devices including support for third party Brokers. Thanks to Payload Decoder, Datacake adapts to any existing topic structure and also offers the possibility to send data from the platform back to the device.
- Payload Decoder for Subscriptions
- Downlink Encoder for custom Publishes
- Third-Party MQTT Broker Support
Available for API Devices
No new device type is required to use the new MQTT integration. The functions are available for any standard API device.
Payload Decoders for Subscriptions
Define one or more MQTT topics that your API Device should subscribe to and specify a payload decoder for each of these subscriptions.
Payload decoders are JavaScript snippets that can be used to decode the incoming data via the topic accordingly.
For example, you can send a JSON containing several data, which will be decoded by the javascript code and written to the respective database fields of the device.
Assignment by Serial Number
Use decoders to extract serial numbers, which are embedded e.g. in the topic of the publish, and forward them to the corresponding device on Datacake.
Send Downlinks
Downlinks, known from the LoRaWAN ecosystem, are commands that can be sent from the platform to a sensor or device. Using short javascript snippets you define the payload as well as topic of your downlink publish. An integrated editor helps you to create and test a downlink code.
Also, measurement values or other payload data can be used within the javascript code. So you can define whole JSON structures as payload of the publish.
Downlinks are (as with LoRaWAN or Particle Devices) fundamental elements of the platform and can be placed as a button on a dashboard or used as an action in the rule engine.
Support for External MQTT Brokers
Use external brokers with your Datacake devices and add them to your workspace. In a new overview you can see all external brokers, their connection status as well as logs.
Set username, password and optionally define TLS usage and upload your own certificates. All subscriptions and publishes of your MQTT devices will then take place via these third-party brokers.
For each third-party MQTT server, a log on the workspace provides information about the current connection status. Incoming messages and connection problems can also be seen there.
Available now
The new MQTT integration is now available on the Datacake platform. Try it out and let us know your feedback. We are also happy to provide support for the implementation.