Contents

offset

The zero-based index of the first byte for the read or write request.

Declaration

var offset: Int { get }

Discussion

You can use the value of this property to ensure that the ATT request is attempting to read or write within the proper bounds of the characteristic’s value. For an example of how to take a request’s offset property into account when responding to a read or write request, see Responding to Read and Write Requests from a Central.

See Also

Requesting to Read and Write Characteristic Values