fix: flagging as unsupported the BLE module on macOS as the GATT library support is not complete.

This commit is contained in:
evilsocket 2018-02-27 03:33:37 +01:00
commit fe00cc707f
9 changed files with 34 additions and 34 deletions

View file

@ -1,4 +1,4 @@
// +build !windows
// +build !windows !darwin
package network

View file

@ -1,4 +1,4 @@
// +build !windows
// +build !windows !darwin
package network

View file

@ -1,15 +0,0 @@
package network
import (
"time"
)
type BLEDevice struct {
LastSeen time.Time
}
func NewBLEDevice() *BLEDevice {
return &BLEDevice{
LastSeen: time.Now(),
}
}

View file

@ -1,9 +1,22 @@
// +build windows darwin
package network
import (
"encoding/json"
"time"
)
type BLEDevice struct {
LastSeen time.Time
}
func NewBLEDevice() *BLEDevice {
return &BLEDevice{
LastSeen: time.Now(),
}
}
type BLEDevNewCallback func(dev *BLEDevice)
type BLEDevLostCallback func(dev *BLEDevice)