tinygo-org / bluetooth

Cross-platform Bluetooth API for Go and TinyGo. Supports Linux, macOS, Windows, and bare metal using Nordic SoftDevice or HCI
https://tinygo.org
Other
708 stars 134 forks source link

macOS support multiple services and notification #54

Closed nobonobo closed 4 months ago

nobonobo commented 3 years ago

target: macOS

The following code clears cache for characteristics that device-object has. https://github.com/tinygo-org/bluetooth/blob/release/gattc_darwin.go#L91

If you call service.DiscoverCharacteristics() twice or more for multiple services, the previously built cache will be cleared. Characteristics notification implementation depends on this cache. Previous characteristics notification does not work.

56

deadprogram commented 4 months ago

Now closing since 0.9.0 has been released. Thank you!