ARMmbed / ble-x-nucleo-idb0xa1

port of BLE_API to ST BLE shield
14 stars 5 forks source link

Offset for reading long characteristic #36

Closed YoHidden closed 5 years ago

YoHidden commented 5 years ago

Hi there,

I am using the ST shield board X-NUCLEO-IDB05A1 with this library and found that I can not get access to more than 22 bytes when reading a characteristic. My discovered caracteristic is 29 bytes long and after a first successful read access getting 22 bytes, I call a second time the read function but adding an offset of 22 bytes. I am getting an answer of other 22 bytes which are completely wrong and they have nothing to do with the expected remaining 7 bytes.

I have tracked backwards the read function up to the function _ble_error_t BlueNRGGattConnectionClient::read(GattAttribute::Handle_t attributeHandle, uint16t offset) const, and found that offset parameter is being ignored, with a simple call to function _aci_gatt_read_characval which does not use the offset value.

So, how should I proceed to read a full length characteristic with more than 22 bytes ?

Thanks.

apalmieriGH commented 5 years ago

Hi YoHidden, this library is no longer maintened. Please, refer to cordio-ble-x-nucleo-idb0xa1

Regards

YoHidden commented 5 years ago

Oops !! ...good to know !!

Thanks.