1 (edited by prateekkhatri 2019-08-05 15:06:11)

Topic: Compiling WolfMQTT Examples

Hello,

I recently came across WolfMQTT solution and wanted to try a simple MQTT Publishing example. However, I do not see any guide or instructions on building the examples.

I was able to install WolfSSL and WolfMQTT by following the instructions in the user manuals on by Ubuntu 18.06 LTS.

I am simply trying to compile the given example:

prateekkhatri@PC-10307:~/work/wolf/wolfMQTT/examples/mqttclient$ gcc mqttclient.c -o mqtt-test-wolf -lwolfmqtt
In file included from mqttclient.c:29:0:
mqttclient.h:25:10: fatal error: examples/mqttexample.h: No such file or directory
 #include "examples/mqttexample.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Please advise.

Share

Re: Compiling WolfMQTT Examples

Hi @prateekkhatri,

Please see the "Building on *NIX" section of the wolfMQTT manual here: https://www.wolfssl.com/docs/wolfmqtt-m … z7uhcww9nn

The examples should be built with the execution of ./configure && make

For documentation on using/testing each of the examples see Chapter 3 "Getting Started" here: https://www.wolfssl.com/docs/wolfmqtt-m … bjm2iigup4

Warm Regards,

KH