We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8dd34 commit b6fde65Copy full SHA for b6fde65
gap_hci.go
@@ -65,8 +65,12 @@ func (a *Adapter) Scan(callback func(*Adapter, ScanResult)) error {
65
switch t {
66
case 0x02, 0x03:
67
// 16-bit Service Class UUID
68
+ adf.ServiceUUIDs = append(adf.ServiceUUIDs, New16BitUUID(binary.LittleEndian.Uint16(a.hci.advData.eirData[i+2:i+4])))
69
case 0x06, 0x07:
70
// 128-bit Service Class UUID
71
+ var uuid [16]byte
72
+ copy(uuid[:], a.hci.advData.eirData[i+2:i+18])
73
+ adf.ServiceUUIDs = append(adf.ServiceUUIDs, NewUUID(uuid))
74
case 0x08, 0x09:
75
if debug {
76
println("local name", string(a.hci.advData.eirData[i+2:i+1+l]))
0 commit comments