Return-Path: Date: Sun, 31 May 2015 09:55:05 +0700 From: Johan Hedberg To: Jakub Pawlowski Cc: Luiz Augusto von Dentz , BlueZ development Subject: Re: [RFC] Add new method to DBus API: DiscoverServiceByUUID Message-ID: <20150531025505.GA23991@t440s> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jakub, On Thu, May 28, 2015, Jakub Pawlowski wrote: > > 1. Instead of just 1 method there is at least 2, but Connect depends > > on what has been discovered first so you are adding a D-Bus round > > trips. > > Yes, I'm probably adding one round trip. It might hovewer be avoided. > To avoid additional roundtrip there should be two methods: > Connect() that just works right now, and ConnectToUUID(uuid) that > would connect, and then do "Find By Type Value Request". I think that > this solution wouldn't be that clean, and would be problematic to > discover rest of services. We already have this "ConnectToUUID" method in the form of Device1.ConnectProfile, don't we? It was originally designed for BR/EDR, but seems to have at least some code for LE as well. If it's not working as desired for LE it's probably something worth fixing. Johan