Service

struct Service

The Service struct keeps information that we may need across the app. This includes the UUID of the apps Bluetooth service as well as the Characteristics UUID.

  • Undocumented

    Declaration

    Swift

    static let deviceName: String
  • The UUID uniqely verifies this app as to make sure that we do not send bluetooth messages to the wrong device.

    Declaration

    Swift

    static let UUID: CBUUID
  • The unique UUID of the characteristic (the chat functionality part)

    Declaration

    Swift

    static let charUUID: CBUUID