CGA_Bluetooth_Characteristic_Protocol_Internal
internal protocol CGA_Bluetooth_Characteristic_Protocol_Internal : CGA_Bluetooth_Characteristic_Protocol
This protocol publishes an internal interface for our Characteristic wrapper classes.
-
This is the UUID for the Characteristic type. It is not used for external purposes.
Declaration
Swift
static var uuid: String { get } -
This will contain any required scan criteria. It simply passes on the Central criteria.
Declaration
Swift
var scanCriteria: RVS_BlueThoth.ScanCriteria? { get } -
This casts the parent as a Service Wrapper.
Declaration
Swift
var service: CGA_Bluetooth_Service? { get } -
This is a convenience init that should always be used.
Declaration
Swift
init(parent: CGA_Bluetooth_Service, cbElementInstance: CBCharacteristic)Parameters
parentThe Service instance that “owns” this instance.
cbElementInstanceThis is the actual CBharacteristic instance to be associated with this instance.
-
Called to add a Descriptor to our main Array.
Declaration
Swift
func addDescriptor(_ inDescriptor: CGA_Bluetooth_Descriptor)Parameters
inDescriptorThe Descriptor to add.
View on GitHub
CGA_Bluetooth_Characteristic_Protocol_Internal Protocol Reference