Skip to content

Commit

Permalink
Added GATTServer.writeValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Apr 17, 2018
1 parent 0913aa2 commit ca5bdf1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/GATTServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ public final class GATTServer {
return try connection.write()
}

/// Update the value of a characteristic attribute.
public func writeValue(_ value: Data, forCharacteristic handle: UInt16) {

database.write(value, forAttribute: handle)

didWriteCharacteristic(handle)
}

// MARK: - Private Methods

@inline(__always)
Expand Down

0 comments on commit ca5bdf1

Please sign in to comment.