TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: R.WIESER
from: DELOPTES
date: 2020-06-03 22:13:00
subject: Re: BLE, GATT and having

R.Wieser wrote:

> Remark:
> I can either wrap a never-ending loop around the whole program and perhaps
> add some code that will go into discovery mode until the devices
> advertisdement is receieved again, but as the need for reconnection isn't
> something that seldom happens (especially not with short-ranged BLE
> devices) I could imagine its already build into the BLE stack.  But if so,
> where/how to enable it ...

It is SDK and it shows you the way to write the code you need in following
sections

        Discovering nearby Bluetooth Low Energy devices
        Connecting to a Bluetooth Low Energy device and ...

So you better write a small python program that fits your needs

if you were using section "Running the GATT control script", it clearly
states
>To test if your setup is working, run the gattctl tool that is part of this
>SDK. Note that it must be run as root because on Linux, Bluetooth
>discovery by default is a restricted operation.

So I assume this "GATT control script" can be used as a starting point

Also have a look at the dbus API
       
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.