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
744 stars 137 forks source link

hci: refactor to separate HCI transport implementation from interface #270

Closed deadprogram closed 5 months ago

deadprogram commented 5 months ago

This PR is to refactor the HCI to separate the HCI transport implementation from the interface to not always assume UART.

In addition to clarifying the code, it is also in part to prepare for alternative HCI transport implementations such as over SPI.

deadprogram commented 5 months ago

This is working well as part of PR #271 so a little love here please? :smile_cat:

deadprogram commented 5 months ago

Merging now, thanks for review @aykevl