Compare commits
1 Commits
c4d4b1fa60
...
7223b8c380
Author | SHA1 | Date | |
---|---|---|---|
7223b8c380 |
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
Ble.jar
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
A modern, cross-platform Go library for Bluetooth Low Energy
|
A modern, cross-platform Go library for Bluetooth Low Energy
|
||||||
|
|
||||||
This package is a working but incomplete interface for access to Bluetooth
|
This package is a working but incomplete interface for access to Bluetooth
|
||||||
Low Energy. It is intended to support multiple operating systems with a
|
Low Energy devices. It is intended to support multiple operating systems
|
||||||
uniform API. Currently, MacOS and Android are supported. Android support
|
with a uniform API. Currently, MacOS and Android are supported. Android
|
||||||
requires the use of [Gio](https://gioui.org).
|
support requires the use of [Gio](https://gioui.org).
|
||||||
|
|
||||||
The API is asyncrhonous and event driven. To access Bluetooth hardware,
|
The API is asyncrhonous and event driven. To access Bluetooth hardware,
|
||||||
first create a `BLE` variable with `NewBLE()`. On Android, you must also
|
first create a `BLE` variable with `NewBLE()`. On Android, you must also
|
||||||
|
@ -30,7 +30,7 @@ Once enabled, you can call the primary API functions, `Scan`, `StopScan`,
|
||||||
Bluetooth hardware by calling `State`.
|
Bluetooth hardware by calling `State`.
|
||||||
|
|
||||||
Calling `Events` on your `BLE` object returns a channel on which API events
|
Calling `Events` on your `BLE` object returns a channel on which API events
|
||||||
are be delivered. These events notify your program when the state of the
|
are delivered. These events notify your program when the state of the
|
||||||
BLE hardware changes (e.g. powered on or off), peripherals are connected,
|
BLE hardware changes (e.g. powered on or off), peripherals are connected,
|
||||||
services or characteristics are discovered, or values for characteristics
|
services or characteristics are discovered, or values for characteristics
|
||||||
are updated.
|
are updated.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user