sensor_gateway

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: 13 Imported by: 0

Documentation

Overview

Stream live sensor events via the SensorManager event queue callback.

Demonstrates the ISensorManager.CreateEventQueue API: registers an IEventQueueCallback stub, enables the accelerometer at 100 ms sampling, and prints incoming sensor events for a fixed duration.

This is the callback-driven counterpart to sensor_reader (which only lists sensor metadata).

Build:

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

Jump to

Keyboard shortcuts

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