fix: fixed device index use for BLE module (fixes #994)

This commit is contained in:
evilsocket 2024-08-09 18:00:08 +02:00
commit 76e136a18e
3 changed files with 11 additions and 6 deletions

View file

@ -4,8 +4,10 @@ import (
"github.com/bettercap/gatt"
)
var defaultBLEClientOptions = []gatt.Option{
gatt.MacDeviceRole(gatt.CentralManager),
func getClientOptions(deviceID int) []gatt.Option {
return []gatt.Option{
gatt.MacDeviceRole(gatt.CentralManager),
}
}
/*