env_scanner

command module
v0.0.0-...-7b93681 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

README

env_scanner

Find environment reports from env_reporter in BLE advertisements.

NOTICE: This does not works with Darwin (macOS).

Prerequisites

Build

$ go build

Testing

$ go test .

Run

To access Bluetooth device, you may need to be root or use sudo.

$ go build -o env_scanner
$ sudo ./env_scanner [-prefix NAME]

This app searches advertisement packet that contains the environmental sensing service data.

-prefix is optional. If specified, this app filters out the advertisement packets whose local name (short name) does not start with the given prefix.

This app accepts SIGUSR1 signal. When received the signal, this app shows the current (latest) reports from reporters.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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