 
 extension CentralManager {
 
-    public struct Identifier : Encodable  {
+    public struct Identifier : Encodable, CustomStringConvertible  {
         public let uuid: CBUUID
         public let name: String?
         

        public func encode() -> Encodable.Properties {
            return ["name": name ?? "", "uuid": uuid.uuidString]
        }
    }

    public struct CharacteristicSubscription : Encodable {
        public let id: Identifier

        public init(id: Identifier) {

        func getServiceUuids() -> [CBUUID]? {
            return services.isEmpty ? nil : services.map() { $0.id.uuid }
        }

        public var description : String {
            var description = "<peripheral \(name) - autoConnect \(autoConnect), autodiscover \(autoDiscover)>"
            services.forEach { description += "\n\($0)" }
            return description
        }
    }
}

