ble_sensor_collector

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 12 Imported by: 0

Documentation

Overview

BLE sensor collector: scan for BLE devices and register a GATT client.

Demonstrates:

  • IBluetoothManager -> RegisterAdapter -> IBluetooth
  • GetBluetoothGatt -> IBluetoothGatt: GATT client registration
  • GetBluetoothScan -> IBluetoothScan: BLE scanning with callbacks
  • IBluetoothGattCallback: OnClientRegistered
  • IScannerCallback: OnScannerRegistered, OnScanResult

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/ble_sensor_collector ./examples/ble_sensor_collector/
adb push build/ble_sensor_collector /data/local/tmp/ && adb shell /data/local/tmp/ble_sensor_collector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL