Sending ATT Prepare Write Request to iOS 7
Sending ATT Prepare Write Request to iOS 7
- Subject: Sending ATT Prepare Write Request to iOS 7
- From: K S <email@hidden>
- Date: Wed, 07 Aug 2013 14:55:38 -0500
Can anyone confirm whether using a Prepare Write Request from a peripheral device to iOS 7 seed 5 works correctly?
I'm attempting to write data to a writeable characteristic, but the data is longer than the MTU, so I use prepare write requests instead.
For an example case, say I have 30 bytes of data, but can only fit 20 bytes in the first request, and the remaining 10 in the second request.
I send a Prepare Write Request with the first 20 bytes, offset 0, and receive a Prepare Write Response with matching data and offset
I send a Prepare Write Request with the remaining 10 bytes, offset 0, and receive a Prepare Write Response with matching data and offset
I send an Execute Write Request, and receive an Execute Write Response indicating the write succeeded.
The problem is, it appears as if only the first 20 supplied in the first prepare write request were actually written to the characteristic.
Can anyone confirm or deny whether this problem exists, or if there is a workaround for it or if I am doing something wrong? Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden