A set of tests for the Go ble library github.com/go-ble/ble
The following steps were followed to make this into a snap.
mkdir snap
mkdir ble-test
cd ble-test
snapcraft init
vim snap/snapcraft.yaml
name: ble-test
version: git
summary: Bluetooth test
description: |
Bluetooth test
grade: devel
confinement: devmode
parts:
ble-test:
source: .
plugin: go
go-importpath: github.com/RobHumphris/ble-test
apps:
ble-test:
command: ble-test
git clone https://github.com/RobHumphris/ble-test.git
cd ble-test
snapcraft
sudo snap install ble-test_0+git.cb54c62_amd64.snap --devmode --dangerous
- Registered the snap name ble-snap
https://dashboard.snapcraft.io/register-snap/
snapcraft login
snapcraft push ble-test_0+git.cb54c62_amd64.snap
To get the snap running on the Dell Edge Gateway 3001 (obviously the version numbers and ip addresses will change...)
scp ./ble-test_0+git.cb54c62_amd64.snap [email protected]:~
- Login to the Gateway
ssh [email protected]
sudo snap install ble-test_0+git.cb54c62_amd64.snap --devmode --dangerous
sudo ble-test