MQTT integration
KX Delta Platform offers direct integration with MQTT through a KX Delta Platform asset package. It offers the full functionality available detailed at code.kx.com.
Currently, all Linux flavors supported by the KX Delta Platform, including Ubuntu 18/20/22 and Red Hat 7/8/9, can integrate with MQTT.
KxMqtt prerequisites
Please ensure that you have MQTT C API paho libraries installed on your server and mosquito installed to test publishing and subscribing to MQTT topics.
The only other requirement is the ability to update the $QHOME
with the necessary libraries and Kdb+ script wrapper as part of the KX Delta Platform installation.
KX Delta Platform KxMqtt asset installation
The KxMqtt KX Delta Platform asset is installed in the same way as all KX Delta Platform, KX Delta Platform asset and Solution packages are installed. Place the package in the relevant package directory and run through the installation script. Further details on KX Delta Platform and package deployment can be retrieved via the Deployment guides
You can use the two configurations below to customize the install profile.
KXMQTT_USE_SSL=NO # Set to "YES" to enable use of SSL in MQTT communications.
KXMQTT_PAHO_LIB_DIR="" # Path to required Ecliplse PAHO lib directory, if not in default path.
KxMqtt KX Analyst integration
KxMqtt is fully integrated with the KX Analyst component of the KX Delta Platform.
.mqtt namespace functionality
A full reference of the .mqtt namespace, outlining the necessary broker interactions and inbuilt callbacks, can be found here gitlab.com
References
For more details on using MQTT in q, see: