Skip to content

Commit 7042cf1

Browse files
maggch97deadprogram
authored andcommitted
Fix write respond
1 parent 1471183 commit 7042cf1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gatts_windows.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ func (a *Adapter) AddService(s *Service) error {
110110
// TODO: connection?
111111
goChar.writeEvent(0, int(offset), bufferToSlice(buf))
112112
}
113+
if option, err := gattWriteRequest.GetOption(); err == nil && option == genericattributeprofile.GattWriteOptionWriteWithResponse {
114+
gattWriteRequest.Respond()
115+
}
113116
})
114117

115118
guid = winrt.ParameterizedInstanceGUID(

0 commit comments

Comments
 (0)