CharacteristicIdentifier

public protocol CharacteristicIdentifier

Characteristic protocol specifies how information about characteristics of device should look like. Sample implementation could look like:

enum DeviceCharacteristic: String, CharacteristicIdentifier {
    case manufacturerName = "2A29"
    var uuid: CBUUID {
        return CBUUID(string: self.rawValue)
    }
    var service: ServiceIdentifier {
        switch self {
        case .ManufacturerName:
            return XXXService.DeviceInformation
        }
    }
}