mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 15:46:59 -07:00
new: implemented ble.recon (ref #74)
This commit is contained in:
parent
536614068c
commit
7fe6cd232c
10 changed files with 443 additions and 2 deletions
21
modules/ble_options_linux.go
Normal file
21
modules/ble_options_linux.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
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,
|
||||
}),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue