Skip to content

Commit

Permalink
Updated for Swift 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Apr 6, 2017
1 parent e7e5066 commit 7bf4da7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Sources/BluetoothLinux/GATTServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ public final class GATTServer {

public let maximumPreparedWrites: Int

// MARK: - Private Properties

private let connection: ATTConnection
// Don't modify
public let connection: ATTConnection

// MARK: - Private Properties

private var preparedWrites = [PreparedWrite]()

// MARK: - Initialization
Expand All @@ -44,12 +45,14 @@ public final class GATTServer {
// MARK: - Methods

/// Performs the actual IO for sending data.
@inline(__always)
public func read() throws {

try connection.read()
}

/// Performs the actual IO for recieving data.
@inline(__always)
public func write() throws -> Bool {

return try connection.write()
Expand Down

0 comments on commit 7bf4da7

Please sign in to comment.