Skip to content

Building and running CoAP Broker

Aldwin Hermanudin edited this page Sep 12, 2017 · 6 revisions

INTRODUCTION

Before building the CoAP Broker make sure the following components are installed correctly. For both libcoap and Paho MQTT C library that are used at the time of development are provided in the folder misc/library of this repository,

libcoap
Paho MQTT C
cmake

BUILDING

create folder build (if not already) and run cmake in that folder

mkdir build
cd build
cmake ..

run make to build CoAP Broker

make

RUNNING

There are 4 available arguements in CoAP Broker.

-v used for verbosity. The higher the number, the more verbose.
-h display the help information
-e enables mqtt-bridge and or CoAP Resource Directory

For example

coap-broker -v 9 -e mqtt -e rd

above command will enable verbosity level of 9, MQTT bridge and CoAP Resource Directory.