From 5d2dac18c8f82e7054fb416e59348bfb90f0cdf3 Mon Sep 17 00:00:00 2001 From: Jan-Marcel Dietrich Date: Thu, 24 Oct 2024 15:08:10 +0200 Subject: [PATCH] Add missing parameter 'flags' to ATT_Execute_Write_Request PDU Bluetooth spec @ Vol 3, Part F - 3.4.6.3 Table 3.36 shows that the ATT_EXECUTE_WRITE_REQ PDU contains the parameter 'Flags' with size 1 octet, which allows to cancel all prepared writes (0x00) or to immediately write all pending prepared values (0x01). --- bumble/att.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/att.py b/bumble/att.py index aeae7c9c..15ad8c69 100644 --- a/bumble/att.py +++ b/bumble/att.py @@ -710,7 +710,7 @@ class ATT_Prepare_Write_Response(ATT_PDU): # ----------------------------------------------------------------------------- -@ATT_PDU.subclass([]) +@ATT_PDU.subclass([("flags", 1)]) class ATT_Execute_Write_Request(ATT_PDU): ''' See Bluetooth spec @ Vol 3, Part F - 3.4.6.3 Execute Write Request