Adapter between Mainflux IoT system and LoRa Server.
This adapter sits between Mainflux and LoRa server and just forwards the messages form one system to another via MQTT protocol, using the adequate MQTT topics and in the good message format (JSON and SenML), i.e. respecting the APIs of both systems.
LoRa Server is used for connectivity layer and data is pushed via this adapter service to Mainflux, where it is persisted and routed to other protocols via Mainflux multi-protocol message broker. Mainflux adds user accounts, application management and security in order to obtain the overall end-to-end LoRa solution.
If not set already, please set your GOPATH
and GOBIN
environment variables. For example:
mkdir -p ~/go
export GOPATH=~/go
export GOBIN=$GOPATH/bin
# It's often useful to add $GOBIN to $PATH
export PATH=$PATH:$GOBIN
Use go
tool to "get" (i.e. fetch and build) mainflux-lora-adapter
package:
go get github.com/mainflux/mainflux-lora-adapter
This will download the code to $GOPATH/src/github.com/mainflux/mainflux-lora-adapter
directory,
and then compile it and install the binary in $GOBIN
directory.
Now you can run the program with:
mainflux-lora-adapter
if $GOBIN
is in $PATH
(otherwise use $GOBIN/mainflux-lora-adapter
)
Development documentation can be found here.
mainflux Google group.