bettercap/modules/ble/ble_options_linux.go

28 lines
529 B
Go

package ble
import (
"github.com/bettercap/gatt"
// "github.com/bettercap/gatt/linux/cmd"
)
func getClientOptions(deviceID int) []gatt.Option {
return []gatt.Option{
gatt.LnxMaxConnections(255),
gatt.LnxDeviceID(deviceID, true),
}
}
/*
var defaultBLEServerOptions = []gatt.Option{
gatt.LnxMaxConnections(255),
gatt.LnxDeviceID(-1, true),
gatt.LnxSetAdvertisingParameters(&cmd.LESetAdvertisingParameters{
AdvertisingIntervalMin: 0x00f4,
AdvertisingIntervalMax: 0x00f4,
AdvertisingChannelMap: 0x7,
}),
}
*/