nswrap/examples/bluetooth/main.go
Greg eced251710 Create GoString helper methods for anything that has a "WithString"
method. Multiple bug fixes in type system, fixed parsing of id,
instancename and instancetype, allow NullableAnnotations after
generic lists (e.g. "id<ObjectType> _Nullable"). Helper function
to identify types that are function pointers.
2019-05-03 13:14:30 -04:00

19 lines
350 B
Go

package main
import (
"fmt"
"time"
"gitlab.wow.st/gmp/nswrap/examples/bluetooth/ble"
)
func main() {
cd := ble.NewBle_delegate().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 { }
}