minor refactoring of the ble module

This commit is contained in:
evilsocket 2018-08-20 15:47:35 +02:00
commit f79f4bff4c
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 104 additions and 94 deletions

View file

@ -11,6 +11,8 @@ import (
"github.com/bettercap/gatt"
)
const BLEMacValidator = "([a-fA-F0-9]{1,2}:[a-fA-F0-9]{1,2}:[a-fA-F0-9]{1,2}:[a-fA-F0-9]{1,2}:[a-fA-F0-9]{1,2}:[a-fA-F0-9]{1,2})"
type BLEDevNewCallback func(dev *BLEDevice)
type BLEDevLostCallback func(dev *BLEDevice)