Arm Mbed OS support forum

Cordio: onDataSent event, which characteristic

Hi,

Is there a callback in the Cordio GattServer stack that lets you know which characteristic just sent a notification? I’m registering for onDataSent, but the callback doesn’t say which characteristic / attribute handle just sent. As is, it passes back a count variable…which is hard coded to 1 in GattServer.h

Stepping back a sec…we’re trying to stream data over a notifying characteristic. We DON’T want to update the characteristic value if the previous value hasn’t been sent yet ( basically our thread would sleep waiting for the notification to get out before overwriting the value ). What’s the best way to use the existing API to do this, since it seems the onDataSent callback wont’ work, since we can’t tell which characterstic has sent

2 Likes