Repository navigation
Streams http gateway AI
If you want more detailed informations regarding streams-http-gateway, check the official page here. The following information comes from the official documentation.
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
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
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
After installing and running streams, there will be a port, 8080 by default listening for messages. These messages will be posted on the tangle and will be available here with the channel id.
ESP-32 will not send messages directly to streams, why? Keepy will be used as buffer, in this way it will be easy to access to messages reading just the last one instead of filtering all the data in the channel.
AIcam will not read any message on the tangle but using keepy will make the work easier for IoTraffic.
Streams must be active while running the program on the board otherwise keepy will not be able to post any message
Find me on telegram @elraulito