Home

Awesome

iothub

IoT Hub for things

this project is a multiroom echo server using websockets, you could have any sensor sending data to a room and have any other device join that room to read the data in realtime

Getting started

This project requires Go to be installed. On OS X with Homebrew you can just run brew install go.

Running it then should be as simple as:

$ make
$ ./bin/iothub

Running with -version will get you the current version and git commit hash for the binary

$ ./bin/iothub -version

Configuration

IoT Hub uses environment variables for configuration all of them are prefixed with IOTHUB.

when IOTHUB_SECRET is set to true the following is also required

a note on logging, debug is very verbose as it outputs all the messages the server receives

SSL

you can generate your certificates using lego

$ openssl req  -nodes -new -x509 -newkey rsa:4096 -keyout ssl/server.key -out ssl/server.crt

Testing

make test

Features