mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 13:02:12 -07:00
21 lines
477 B
Go
21 lines
477 B
Go
package modules
|
|
|
|
import (
|
|
"github.com/bettercap/gatt"
|
|
"github.com/bettercap/gatt/linux/cmd"
|
|
)
|
|
|
|
var defaultBLEClientOptions = []gatt.Option{
|
|
gatt.LnxMaxConnections(1),
|
|
gatt.LnxDeviceID(-1, true),
|
|
}
|
|
|
|
var defaultBLEServerOptions = []gatt.Option{
|
|
gatt.LnxMaxConnections(1),
|
|
gatt.LnxDeviceID(-1, true),
|
|
gatt.LnxSetAdvertisingParameters(&cmd.LESetAdvertisingParameters{
|
|
AdvertisingIntervalMin: 0x00f4,
|
|
AdvertisingIntervalMax: 0x00f4,
|
|
AdvertisingChannelMap: 0x7,
|
|
}),
|
|
}
|