Skip to content

Commit

Permalink
Renamed GATT.Service.UUID to var uuid: UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 8, 2017
1 parent 2345544 commit 9b7bec2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Sources/GATTAttributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ public extension GATT {
/// GATT Service
public struct Service {

public var UUID: BluetoothUUID
public var uuid: BluetoothUUID

public var primary: Bool

public var characteristics: [Characteristic]

public var includedServices: [IncludedService]

public init(UUID: BluetoothUUID = BluetoothUUID(),
public init(uuid: BluetoothUUID = BluetoothUUID(),
primary: Bool = true,
characteristics: [Characteristic] = [],
includedServices: [IncludedService] = []) {

self.UUID = UUID
self.uuid = uuid
self.characteristics = characteristics
self.primary = primary
self.includedServices = includedServices
Expand All @@ -47,7 +47,7 @@ public extension GATT {
public typealias Descriptor = GATT.Descriptor
public typealias Property = GATT.CharacteristicProperty

public var UUID: BluetoothUUID
public var uuid: BluetoothUUID

public var value: Data

Expand All @@ -57,13 +57,13 @@ public extension GATT {

public var descriptors: [Descriptor]

public init(UUID: BluetoothUUID = BluetoothUUID(),
public init(uuid: BluetoothUUID = BluetoothUUID(),
value: Data = Data(),
permissions: [Permission] = [],
properties: [Property] = [],
descriptors: [Descriptor] = []) {

self.UUID = UUID
self.uuid = uuid
self.value = value
self.permissions = permissions
self.descriptors = descriptors
Expand All @@ -74,17 +74,17 @@ public extension GATT {
/// GATT Characteristic Descriptor
public struct Descriptor {

public var UUID: BluetoothUUID
public var uuid: BluetoothUUID

public var value: Data

public var permissions: [Permission]

public init(UUID: BluetoothUUID = BluetoothUUID(),
public init(uuid: BluetoothUUID = BluetoothUUID(),
value: Data = Data(),
permissions: [Permission] = []) {

self.UUID = UUID
self.uuid = uuid
self.value = value
self.permissions = permissions
}
Expand Down

0 comments on commit 9b7bec2

Please sign in to comment.