Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Public subscribe implementation for the COnstrained Application Protocol (COAP)

Notifications You must be signed in to change notification settings

federicorossifr/coap-publish-subscribe

Repository files navigation

coap-publish-subcribe

Public subscribe implementation for the COnstrained Application Protocol (COAP)

https://tools.ietf.org/pdf/draft-ietf-core-coap-pubsub-05.pdf

Contributors

Gioele Carignani
Vincenzo Consales
Federico Rossi

Run the broker inside a container

Install Docker from the official website here
If it is the first time, install docker-compose:

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

If not started, start the Docker daemon:

sudo systemctl start docker

Apply executable permissions to the binary:

sudo chmod +x /usr/local/bin/docker-compose

Run the container (execute command from inside the broker folder, where the docker-compose.yml file is)

user ~/coap-publish-subscribe/broker $ sudo docker-compose up

The broker server will run at the address specified inside the docker-compose.yml at port 5683

If either Broker app or CoAPthon source have been modified, re-build the container image before running it:

user ~/coap-publish-subscribe/broker $ sudo docker-compose build --no-cache

Patch Contiki observe library

Before compiling the sources you need to patch the Contiki firmware in order to solve an issue related to NOTIFY payload with CON messages and to remove forced debug prints that do not fit the Z1 ROM.

user ~/contiki $ git apply patch