Code Monkey home page Code Monkey logo

coap-publish-subscribe's Introduction

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

coap-publish-subscribe's People

Contributors

federicorossifr avatar gioelec avatar vconsales avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coap-publish-subscribe's Issues

Move button control from subscriber to publisher

Subscriber should only listen for "ALARM" messages on the topic without any control, only lighting on the leds when "ALARM" is notified and lighting them off when something else is received.

Publisher should instead be able to enable/disable the alarming functionality (i.e. publish to the ps/intrusion topic the proper value according to sensed forces) when the button is pressed.
When the alarming functionality is disabled it updates ONLY ONCE the topic with "QUIET" or something else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.