Hi,

I have a custom GATT service working with read/write all ok; now I am
looking at adding notify support.

On my first look thru the newt source my first take was that the app needs
to cache the GATT registrations in 'gatt_svr_register_cb' to obtain the
chr_val_handle and also track BLE_GAP_EVENT_CONN events and keep hold of
the conn_handles's
 so at a later point it can trigger a notification (for one for more
clients) by calling:
ble_gattc_notify(uint16_t conn_handle, uint16_t chr_val_handle)


My first reaction to that is that I must be wrong as that perhaps too much
duplicated state in the app.

Is there something simpler like   'ble_send_notify(char_handle, data, len)'
 that will notify all connected clients ?


All the best
Wayne

Reply via email to