plus, i've picked up a few new hardware add-ons. #include "stdlib.h" #include "string.h" #include "unistd.h" #include "MQTTClient.So, now that i've got about 4 weeks of NR experience under my belt, i thought i would do a follow up and show a few new flows. We will add support for the configuration and shell. A list of supported operations can be added here. Up to this point, it was unknown what exactly the device supports, but the list of supported operations can be modified with the template 114. The QoS selection does not matter for this example.Īfterwards, your MQTTBox should look like this:Īt the current state, the UI does not show any tabs for operations. You can enter both topics after another in the Subscribe field and click Subscribe.
Other configurations like “clean session” are not important for this example. Info: You may review Tenants > Tenant ID and tenant domain in the Cumulocity IoT OpenAPI Specification to get a better understanding between tenant ID and tenant domain. mqtt) or the domain of the instance in the format mqtt. As URL you can use your tenant domain (e.g.
In order to follow this tutorial, check the following prerequisites:
In this tutorial, you will learn how to use MQTT with Cumulocity IoT using pre-defined messages (called “static templates”). It also contains examples on how to use the MQTT client with Cumulocity IoT employing pre-defined messages (called “static templates”) using C, Java, JavaScript, Python and C#.Īll the examples can be downloaded from the GitHub repository. In this section, Hello MQTT provides an easy introduction to the Cumulocity IoT MQTT protocol using a MQTT cross platform application.