mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-08 06:30:13 -08: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,
|
|
}),
|
|
}
|
|
|
|
*/
|