TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2020-06-03 21:02:00
subject: BLE, GATT and having it a

Hello all,

I've got a small BLE device (an iTag) which I'm able to communicate with
using a GATT class I found here:
https://codeload.github.com/getsenic/gatt-python/zip/master

It works fine, but for one thing: Whenever I get outof range (which is
rather easy to do) I have to re-run the python program to reconnect.

Question: Is there a setting somewhere that causes my my RPi's BLE to
automatically reconnect to the device when it comes in range again ?

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 ...

Regards,
Rudy Wieser

--- 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™.