...
The first step before including µC/HTTPMQTT-client is to have a working project with µC/TCP-IP. As previously mentioned, Micriµm may offer an example with the µC/OS-III kernel, µC/TCP-IP and even µC/HTTPMQTT-client for many evalboards.
If no project with µC/TCP-IP is available for your platform, you should follow the µC/TCP-IP Getting Started Guide to ensure you have a working project before installing µC/HTTPMQTT-client. Then you can follow the steps to build and run your first µC/HTTPMQTT-client sample application shown below.
Including µC/
...
MQTT-client Stack Source Code
As indicated in the Figure - HTTP-client Folder Tree , all the files in the "Source" folder of the "Client" directory must be added to your project tree.
Furthermore, all files in the "Common" folder under the "HTTPMQTT" parent directory must be added to your project tree.
...
Add the following include paths to your project’s C compiler settings:
\Micrium\Software\uC-HTTPMQTT
Copying and Modifying Template Files
Copy the files from the uC-HTTPMQTT-client configuration folder into your application as illustrated below.
Adding µC/
...
MQTT-client Example Application Code
The code below presents a simple HTTP MQTT client application where the µC/HTTPMQTT-client suite is initialized before one connection is opened and one request PUBLISH message is sent. Every API function call is non-blocking.
It is also assumed that all prerequisite modules have been initialized before calling the µC/HTTPMQTT-client example function.
...