SumeetSingh19 opened a new issue, #1417:
URL: https://github.com/apache/mynewt-nimble/issues/1417

   Whenever the server application calls `ble_gatts_notify` there is a 
characteristic read event (`access_cb`) and the connection handle passed to 
that event is 0xFFFF.
   
   The issue exists because `ble_gatts_notify` calls `ble_gatts_notify_custom` 
with `txom` set to `NULL`.
   In `ble_gattc_notify_custom`, if `txom` is `NULL`, it fills the buffer with 
data from the same attribute whose handle is passed to 
`ble_gatts_notify_custom`.
   The way it does that is by calling the access callback of that attribute 
through `ble_att_svr_read_handle', and it specifies the connection handle as 
`BLE_HS_CONN_HANDLE_NONE`, which is `0xFFFF`.
   
   So server application gets an invalid connection handle when notifying a 
client.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to