-
Notifications
You must be signed in to change notification settings - Fork 0
Install GO language and compile Serial to TCP Bridge Protocol
Volodymyr Huz edited this page Nov 29, 2019
·
4 revisions
Install GO language 1.11.13
wget https://storage.googleapis.com/golang/go1.11.13.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.11.13.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
Put PATH into ~/.profile
sudo nano ~/.profile
PATH="$PATH:/usr/local/go/bin"
Check Version
go version
Install pre requirements to compile Serial to TCP Bridge Protocol service
sudo apt-get install git
sudo apt-get install libc6-dev
sudo apt-get install gcc
Compile Serial to TCP Bridge Protocol binary
go get -u github.com/RoanBrand/SerialToTCPBridgeProtocol
Create config file
sudo nano ~/go/bin/config.json
{
"gateways": [
{
"gateway name": "Gateway for Arduino Uno",
"comport name": "/dev/ttyUSB0",
"baud rate": 9600
}
]
}