Hello,
I do connections between 2 nrf51 with a known and static services. Is that possible to bypass the discovery to access a characteristics (i know all characteristics) ?
Thank you
Hello,
I do connections between 2 nrf51 with a known and static services. Is that possible to bypass the discovery to access a characteristics (i know all characteristics) ?
Thank you
Yes, you can use the handle directly if you know that they will not change.
Use the sd_ble_gattc_write function, and give the known handle.
Another solution if you know the UUID, but not the handle, is to perform a sd_ble_gattc_char_value_by_uuid_read call to extract the handle of the UUID. This is much faster than performing a full service discovery procedur.
Edit: In order to find the static handles you can use Master Control Panel to perform service discovery.
Yes, you can use the handle directly if you know that they will not change.
Use the sd_ble_gattc_write function, and give the known handle.
Another solution if you know the UUID, but not the handle, is to perform a sd_ble_gattc_char_value_by_uuid_read call to extract the handle of the UUID. This is much faster than performing a full service discovery procedur.
Edit: In order to find the static handles you can use Master Control Panel to perform service discovery.