mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
feat(nimble): Add offset in GATT server long read context
This commit is contained in:
committed by
Rahul Tank
parent
002183823a
commit
8a553ad4e6
@@ -1142,6 +1142,12 @@ struct ble_gatt_access_ctxt {
|
||||
*/
|
||||
const struct ble_gatt_dsc_def *dsc;
|
||||
};
|
||||
|
||||
/**
|
||||
* An offset in case of BLE_ATT_OP_READ_BLOB_REQ.
|
||||
* If the value is greater than zero it's an indication of a long attribute read.
|
||||
*/
|
||||
uint16_t offset;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -520,6 +520,7 @@ ble_gatts_chr_val_access(uint16_t conn_handle, uint16_t attr_handle,
|
||||
|
||||
gatt_ctxt.op = ble_gatts_chr_op(att_op);
|
||||
gatt_ctxt.chr = chr_def;
|
||||
gatt_ctxt.offset = offset;
|
||||
|
||||
ble_gatts_chr_inc_val_stat(gatt_ctxt.op);
|
||||
rc = ble_gatts_val_access(conn_handle, attr_handle, offset, &gatt_ctxt, om,
|
||||
|
||||
Reference in New Issue
Block a user