Bug fixes and clean up how methods are added to an interface from

superclasses and protocols. Ensure that "Unavailable" attributes are
handled properly.
This commit is contained in:
gmp
2019-06-11 16:41:21 -04:00
parent 9a4fabda24
commit b0139b9aa8
4 changed files with 106 additions and 92 deletions
+2
View File
@@ -55,6 +55,8 @@ func discoverServices(p ns.CBPeripheral, e ns.NSError) {
case serv.UUID().IsEqualTo(ns.CBUUIDWithGoString("180A")):
fmt.Printf("--device information service\n")
p.DiscoverCharacteristics(ns.NSArray{}, serv)
default:
fmt.Printf("--unknown service\n")
}
return true
})
+1 -1
View File
@@ -38,4 +38,4 @@ delegates:
- peripheralDidUpdateValueForCharacteristic
pragma: [ clang diagnostic ignored "-Wformat-security" ]
autorelease: true
gogc: true