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:
@@ -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
|
||||
})
|
||||
|
||||
@@ -38,4 +38,4 @@ delegates:
|
||||
- peripheralDidUpdateValueForCharacteristic
|
||||
|
||||
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
||||
autorelease: true
|
||||
gogc: true
|
||||
|
||||
Reference in New Issue
Block a user