CGA_Bluetooth_Service_Protocol

public protocol CGA_Bluetooth_Service_Protocol : AnyObject, RVS_SequenceProtocol

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

  • This is used to reference an “owning instance” of this instance, and it should be a CGA_Bluetooth_Peripheral

    Declaration

    Swift

    var parent: CGA_Class_Protocol? { get }
  • id

    This returns a unique UUID String for the instance.

    Declaration

    Swift

    var id: String { get }
  • This returns the parent Central Manager

    Declaration

    Swift

    var central: RVS_BlueThoth? { get }
  • This casts the parent as a Peripheral Wrapper.

    Declaration

    Swift

    var peripheral: CGA_Bluetooth_Peripheral? { get }

Public Methods

  • The required init, with a “primed” sequence.

    Declaration

    Swift

    init(sequence_contents: [Element])

    Parameters

    sequence_contents

    The initial value of the Array cache.