Return-Path: MIME-Version: 1.0 In-Reply-To: <20160108222608.GU152924@redhat.com> References: <20160108222608.GU152924@redhat.com> Date: Sun, 10 Jan 2016 19:13:56 -0300 Message-ID: Subject: Re: example GATT code to talk with a sensortag From: Luiz Augusto von Dentz To: Don Zickus Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Don, On Fri, Jan 8, 2016 at 7:26 PM, Don Zickus wrote: > Hi, > > Sorry for the newbie question. I stumbled upon a TI sensortag and was able > to communicate with it using the gatttool. Now I am trying to figure out > how to build an app around that. Googling has shown me lots of examples of > folks using expect scripts (around the gatttool). > > I was hoping for something in C or python. Is there an example > program/script around that I can copy and expand to get me started? > > Thanks! > > Cheers, > Don bluetoothctl has some generic support for GATT attributes, in addition we have some examples in python under test/example-gatt-client and test/example-gatt-server. -- Luiz Augusto von Dentz