From 087ff71e175ed08659d1080bca480d770e8d07ed Mon Sep 17 00:00:00 2001 From: Weijie Zhao Date: Fri, 18 Jul 2025 13:13:57 +0800 Subject: [PATCH] Fix write respond --- gatts_windows.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gatts_windows.go b/gatts_windows.go index 5bc3a0c..464926f 100644 --- a/gatts_windows.go +++ b/gatts_windows.go @@ -110,6 +110,9 @@ func (a *Adapter) AddService(s *Service) error { // TODO: connection? goChar.writeEvent(0, int(offset), bufferToSlice(buf)) } + if option, err := gattWriteRequest.GetOption(); err == nil && option == genericattributeprofile.GattWriteOptionWriteWithResponse { + gattWriteRequest.Respond() + } }) guid = winrt.ParameterizedInstanceGUID(