Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 922 Bytes

README.md

File metadata and controls

55 lines (39 loc) · 922 Bytes

Agrosense BLE (Bluetooth Low Energy) daemon

Building

make build

Install systemd service

Install sensord binary

sudo cp sensord /usr/bin/sensord

Copy unit file to /lib/systemd/system/

sudo cp systemd/sensord.service /lib/systemd/system/sensord.service

Reload systemd units

sudo systemctl daemon-reload

Enable sensord.service and start the service

sudo systemctl enable sensord.service
sudo systemctl start sensord.service

Check if running properly

sudo systemctl status sensord

Install/Upgrade Go

# Set Go version to install
export GO_VERSION=1.19

# Download & install
wget https://go.dev/dl/go$GO_VERSION.linux-armv6l.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go$GO_VERSION.linux-armv6l.tar.gz

# Add to $PATH
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/home/pi/go/bin