Return-Path: MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 21 Oct 2011 09:29:47 -0300 Message-ID: Subject: Re: Query regarding BLE GetPrimaryServices() From: Anderson Lizardo To: Vijaykumar Dadmode Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, On Fri, Oct 21, 2011 at 9:06 AM, Vijaykumar Dadmode wrote: > Hi Anderson, > >> This is already done automatically, when you do either CreateDevice() >> or CreatePairedDevice(). See the device_browse_primary() calls in >> src/device.c and src/adapter.c > > How do we get the primary services when we have already called a "CreateDevice() or CreatePairedDevice()", "CONNECTED" state over dbus? You cannot do this by hand. It is done right after connection (or pairing, if using CreatePairedDevice). For more information on how to read the services and characteristics over D-Bus, see doc/attribute-api.txt. Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil