mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed device index use for BLE module (fixes #994)
This commit is contained in:
parent
93de427f9a
commit
76e136a18e
3 changed files with 11 additions and 6 deletions
|
@ -5,9 +5,11 @@ import (
|
|||
// "github.com/bettercap/gatt/linux/cmd"
|
||||
)
|
||||
|
||||
var defaultBLEClientOptions = []gatt.Option{
|
||||
gatt.LnxMaxConnections(255),
|
||||
gatt.LnxDeviceID(-1, true),
|
||||
func getClientOptions(deviceID int) []gatt.Option {
|
||||
return []gatt.Option{
|
||||
gatt.LnxMaxConnections(255),
|
||||
gatt.LnxDeviceID(deviceID, true),
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue