Skip to content

Commit

Permalink
Fix characteristic write
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 26, 2024
1 parent 3b997ff commit 64075b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/NimBLE/GATTServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ internal extension NimBLE.Context {
if let error = gattServer.willWrite?(request) {
throw error
}
// update value
let isValidAttribute = gattServer.didWriteCharacteristic(newValue, for: attributeHandle)
assert(isValidAttribute)
// confirmation
let confirmation = GATTWriteConfirmation(
central: central,
Expand Down

0 comments on commit 64075b9

Please sign in to comment.