gatt_client_discover_characteristics_for_handle_range_by_uuid16() function
The following four functions are used to discover all characteristics within the specified service or handle range, and return those that match the given UUID. For each found characteristic a GATT_EVENT_CHARACTERISTIC_QUERY_RESULT event will emitted. The GATT_EVENT_QUERY_COMPLETE event marks the end of discovery.
Return value
status BTSTACK_MEMORY_ALLOC_FAILED, if no GATT client for con_handle is found GATT_CLIENT_IN_WRONG_STATE , if GATT client is not ready ERROR_CODE_SUCCESS , if query is successfully registered