RVS_BTDriver_Service_BLE
class RVS_BTDriver_Service_BLE : RVS_BTDriver_Service
This implements a way for the driver to track our initialization progress.
-
The CB service associated with this instance.
Declaration
Swift
internal var cbService: CBService!
-
Start a discovery process for all characteristics (properties).
Declaration
Swift
internal override func discoverInitialCharacteristics()
-
This searches the service, and returns a property that “owns” the given characteristic.
Declaration
Swift
internal func propertyInstanceForCBCharacteristic(_ inCBCharacteristic: CBCharacteristic) -> RVS_BTDriver_Property_BLE!
Parameters
inCBCharacteristic
The CoreBluetooth Characteristic we are matching.
Return Value
The Property instance for the characteristic. Nil, if it can’t be matched.
-
This searches the service, and returns a property for the given characteristic, identified by its UUID (as a String).
Declaration
Swift
internal func propertyInstanceForCBUUID(_ inUUIDString: String) -> RVS_BTDriver_Property_BLE!
Parameters
inUUIDString
The CoreBluetooth Characteristic UID (as a String) we are matching.
Return Value
The Property instance for the UID. Nil, if it can’t be matched.
-
This adds a new property to the holding pen (if it can read), where an update will be requested, or directly into the main list.
Declaration
Swift
internal func addPropertyToList(_ inPropertyObject: RVS_BTDriver_Property_BLE)
Parameters
inPropertyObject
The property object we are adding.