Commit fbd688e
authored
fix(darwin): Device.DiscoverServices() filters discovered services (#428)
* fix(darwin): Device.DiscoverServices() filters discovered services
Currently, even if you pass a slice of services to discover. CoreBluetooth still discover ALL services.
As per the CoreBluetooth documentation: "If the servicesUUIDs parameter is nil, this method returns all of the peripheral’s available services. This is much slower than providing an array of service UUIDs to search for."
* fix(darwin): Device.DiscoverCharacteristics() filters discovered characteristics
Currently, even if you pass a slice of characteristics to discover. CoreBluetooth still discover ALL characteristics.
As per the CoreBluetooth documentation: " If the characteristicUUIDs parameter is nil, this method returns all of the service’s characteristics. This is much slower than providing an array of characteristic UUIDs to search for."1 parent 5372045 commit fbd688e
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
| |||
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
109 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
110 | 126 | | |
111 | 127 | | |
112 | 128 | | |
| |||
0 commit comments