The function gattlib_discover_primary makes the assumption that all characteristics appear after the service when traversing the entire object list. This is not always the case, which will result in attribute handle values for services be missing.
On that same note, attr_handle_start now stores the service handle and attr_handle_end the highest handle of all characteristics that belong to this service.
The function
gattlib_discover_primary
makes the assumption that all characteristics appear after the service when traversing the entire object list. This is not always the case, which will result in attribute handle values for services be missing.On that same note,
attr_handle_start
now stores the service handle andattr_handle_end
the highest handle of all characteristics that belong to this service.