gatt_client_discover_primary_services() function
Discovers all primary services. For each found service a GATT_EVENT_SERVICE_QUERY_RESULT event will be 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