CGA_Bluetooth_Descriptor_Protocol

public protocol CGA_Bluetooth_Descriptor_Protocol : CGA_Class_Protocol

This protocol publishes a public interface for our Descriptor wrapper classes.

  • id

    This returns a unique UUID String for the instance.

    Declaration

    Swift

    var id: String { get }
  • If the Descriptor has a value, it is returned here. It is completely untyped, as each descriptor has its own types.

    Declaration

    Swift

    var value: Any? { get }
  • This holds the instance of CBDescriptor that is used by this instance.

    Declaration

    Swift

    var cbElementInstance: CBDescriptor? { get }
  • This casts the parent as a Characteristic Wrapper.

    Declaration

    Swift

    var characteristic: CGA_Bluetooth_Characteristic? { get }
  • The Peripheral is asked to read our value.

    Declaration

    Swift

    func readValue()