Baden Parr
3523e14bfc
macos: implement disconnect handeling
...
macos: add disconnect handler
macos: add default timeout and params.ConnectionTimeout handling
macos: add central manager CancelConnect call on connection timeout
macos: added address to connectHanndler call upon successful connection
macos: remove printing error on peripheral disconnection
macos: move and rename default connection timeout
macos: wait for disconnection upon timed out connection attempt
2023-05-04 14:02:39 +02:00
Ayke van Laethem
b06d666dbf
all: remove Addresser
...
Remove the Addresser type. It isn't really necessary (the Address type
can change between OSes) and makes it difficult to fix a heap allocation
in interrupts (on the Nordic SoftDevices).
This is a backwards incompatible change, but only programs that use
SetConnectHandler should notice this.
2023-04-26 23:37:36 +02:00
deadprogram
cc5adf3789
macos: update to point to tinygo-org fork
2022-09-05 15:58:01 +02:00
Jagoba Gascón
9b9512fbc9
advertising: add manufacturer data field to advertisement payload
2022-05-22 14:36:27 +02:00
Erik Price
cf63949412
darwin: make Adapter.Connect thread-safe
...
This change allows multiple concurrent goroutines to call
`Adapter.Connect` without racing.
Fixes #57
2021-07-21 00:09:35 +02:00
Ron Evans
0bc0ef868d
adaptor/macos: handle case when adapter enable sends notification before event delegate is set
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-10-28 08:10:15 +01:00
Ron Evans
6dc1dff711
gap: add connection handler to be called on adapter connect/disconnect
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-10 17:17:45 +02:00
deadprogram
d570aa58a6
docs: better explanation of peripheral UUID on macOS
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00
Ron Evans
a7844e1734
macos: remove unneeded functions to export internal implementaions.
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00
Ron Evans
dc738f9c47
macos: able to discover services and characteristics for a device
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00
Ron Evans
5f44bb4a96
macos: completed initial implementation
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00
Ron Evans
c1114ad708
all: use Addresser interface to handle fact that macOS uses UUID instead of MAC as the BLE address for a peripheral
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00
Ron Evans
a620bacdb8
macos: able to retrieve some of the info when scanning
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00
Ron Evans
51b2b4c2b2
macos: starting point for adding macOS support
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-09-02 08:37:04 +02:00