mirror of
https://github.com/bettercap/bettercap.git
synced 2025-03-12 04:36:03 -07:00
28 lines
529 B
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,
|
|
}),
|
|
}
|
|
|
|
*/
|