mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
new: ble module is now available for macOS
This commit is contained in:
parent
29c571cf16
commit
2e2a5248b4
7 changed files with 18 additions and 17 deletions
17
modules/ble/ble_options_darwin.go
Normal file
17
modules/ble/ble_options_darwin.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package ble
|
||||
|
||||
import (
|
||||
"github.com/bettercap/gatt"
|
||||
)
|
||||
|
||||
var defaultBLEClientOptions = []gatt.Option{
|
||||
gatt.MacDeviceRole(gatt.CentralManager),
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
var defaultBLEServerOptions = []gatt.Option{
|
||||
gatt.MacDeviceRole(gatt.PeripheralManager),
|
||||
}
|
||||
|
||||
*/
|
|
@ -1,5 +1,4 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
package ble
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
package ble
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
package ble
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
package ble
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
package ble
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build windows darwin
|
||||
// +build windows
|
||||
|
||||
package ble
|
||||
|
||||
|
@ -10,17 +10,6 @@ type BLERecon struct {
|
|||
session.SessionModule
|
||||
}
|
||||
|
||||
/*
|
||||
// darwin
|
||||
|
||||
var defaultBLEClientOptions = []gatt.Option{
|
||||
gatt.MacDeviceRole(gatt.CentralManager),
|
||||
}
|
||||
|
||||
var defaultBLEServerOptions = []gatt.Option{
|
||||
gatt.MacDeviceRole(gatt.PeripheralManager),
|
||||
}
|
||||
*/
|
||||
func NewBLERecon(s *session.Session) *BLERecon {
|
||||
mod := &BLERecon{
|
||||
SessionModule: session.NewSessionModule("ble.recon", s),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue