bluetooth
bluetooth copied to clipboard
Cross-platform Bluetooth API for Go and TinyGo. Supports Linux, macOS, Windows, and bare metal using Nordic SoftDevice or HCI
DIS service discovered UUID on macos: `180a0000-0000-0000-0000-000000000000` DIS service discovered UUID on others: `0000180a-0000-1000-8000-00805f9b34fb` specification: 128_bit_value = 16_bit_value * 2^96 + Bluetooth_Base_UUID
If the mac address is valid macIndex should equals to -1 https://github.com/tinygo-org/bluetooth/blob/28f9f4e69ea8116eb3f180ec9c050cf9d27aa82c/mac.go#L39
Using macOS 11.1. Sacnning and connecting to a peripheral works good but I don't get any services when trying to discover them. Anyone else that experiences the same problem? Some...
Need to add instructions on how to install softdevice firmware on v2 board.
Hello, is there a reason why not to use `util.MapToStruct()` here: ````go // gap_linux.go -> line 171 case "org.freedesktop.DBus.Properties.PropertiesChanged": interfaceName := sig.Body[0].(string) if interfaceName != "org.bluez.Device1" { continue } changes...
I am using an Adafruit Feather nrf52840 Express and try to flash it with the advertising example from the ReadMe. I am on MacOS using VSCode. ``` $tinygo flash -target...
It appears as if [AdvertisementPayload.Bytes()](https://pkg.go.dev/tinygo.org/x/bluetooth#AdvertisementPayload) is nil on linux. What I specifically need is the [ManufacturerData](https://github.com/muka/go-bluetooth/blob/44d49b402aee74ccd4342e672223c19ca510bef6/bluez/profile/device/gen_Device1.go#L164) however I'm not sure how to fit that into the `AdvertisementPayload.Bytes()` interface.
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....
When I try to compile an example: ``` package main import ( "fmt" _ "tinygo.org/x/bluetooth" ) func main() { fmt.Println("Hello") } ``` Inside docker: ``` # docker run --privileged --rm...
This PR adds the "channelscan" example that shows use of goroutines and channels with Go Bluetooth.