Skip to content

Streams Autovelox

elRaulito edited this page Nov 18, 2020 · 1 revision

If you want more detailed informations regarding streams-http-gateway, check the official page here. The following information comes from the official documentation.

Preparation

Install Rust if you don't have it already, find the instructions here https://www.rust-lang.org/tools/install

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Make sure you also have the build dependencies installed, if not run:

sudo apt install build-essential

sudo apt install pkg-config

sudo apt install libssl-dev

sudo apt update

Installing the streams-gateway

Download the Repository:

git clone https://github.com/iot2tangle/Streams-http-gateway.git

Configure the streams-gateway:

nano config.json

Set the device_names to whitelist the values specified in the configuration file of the Devices. Change port, node, mwm, local_pow if needed

The device name in config.json will be needed in the board configuration so take note of this value

Runnig the Examples

Run the streams-gateway:

cargo run --release

This starts the server which will forward messages from the devices to the Tangle

The Output will be something like this:

>> Starting....

>> Listening on http://0.0.0.0:8080

Autovelox

Autovelox will not send data directly to streams, Keepy will be used as buffer.

Clone this wiki locally