Commit: 4c22678e960a5bd89aed0717cc6ef863467b9014
Parent: 1abee58711bd10534d958e0fefe551b1d70dde2b
Author: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl>
Committer: Szymon Janc <szymon.janc@codecoup.pl>
Date: 2018-03-21 11:47:07
Tree: b16e9873f6ecb203e1532174318e4bb1cbd34651

gatt: Add org.bluez.Error.InvalidOffset for long read procedure This patch adds handling of invalid offset error for gatt database in case if offset in read blob would be invalid. "The Read Blob Request is repeated until the Read Blob Response’s Part Attribute Value parameter is zero or an Error Response is sent by the server with the Error Code set to Invalid Offset." Bluetooth Core 5.0, 4.12.2 "If the prepare Value Offset is greater than the current length of the attribute value then all pending prepare write values shall be discarded for this client, the queue shall be cleared and then an Error Response shall be sent with the «Invalid Offset»." Bluetooth Core 5.0, 3.4.6.3

Diffstat

M doc/gatt-api.txt | 1 +
M src/gatt-database.c | 3 +++

2 files changed, 4 insertions(+), 0 deletions(-)

View Full Diff | Patch