ARMmbed / ble-x-nucleo-idb0xa1

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

Fix gatt server #34

Open pan- opened 6 years ago

pan- commented 6 years ago

This PR fix reporting of notification and indication.

pan- commented 6 years ago

@apalmieriGH I've fixed what seemed obvious but I've also noticed the following issues:

I'm not sure how you'd want to tackle these issues.

apalmieriGH commented 6 years ago

@pan- regarding the PR, the second argument of handleEvent() is (as per function args description) the "handle of the attribute that was modified", the CCCD in this case. So, when calling the HCIEvent() callback, the second param should be: char_value_handle+1 or am I missing something?

pan- commented 6 years ago

@apalmieriGH You are correct; we got several implementations doing it wrong and forwarding the handle of the characteristic.