nswrap/examples/bluetooth/main.go
2019-05-04 23:32:57 -04:00

19 lines
352 B
Go

package main
import (
"fmt"
"time"
"gitlab.wow.st/gmp/nswrap/examples/bluetooth/ble"
)
func main() {
cd := ble.Ble_delegateAlloc().Init()
fmt.Println("LE capable:",cd.IsLECapableHardware())
time.Sleep(time.Second * 1)
fmt.Println("LE capable:",cd.IsLECapableHardware())
uuid := ble.CBUUIDWithGoString("180d")
cd.ScanFor(uuid)
select { }
}