Return-Path: MIME-Version: 1.0 In-Reply-To: <20160108222608.GU152924@redhat.com> References: <20160108222608.GU152924@redhat.com> Date: Sat, 9 Jan 2016 08:08:46 +0000 Message-ID: Subject: Re: example GATT code to talk with a sensortag From: Barry Byford <31baz66@gmail.com> Cc: Bluez mailing list Content-Type: text/plain; charset=UTF-8 To: unlisted-recipients:; (no To-header on input) Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hello Don, On 8 January 2016 at 22:26, 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 > I'm a bit of a newbie myself although maybe slightly further down the path than you. I've done some Python to communicate between a Raspberry Pi and a Sensor tag. A short video about the experiment is at https://youtu.be/1ZvFdX5bA8k My intention is to clean up the code and post it to https://github.com/ukBaz/python-bluezero within the next couple of weeks so keep an eye on the repository. Regards, Barry