Skip to content

reconnecting to a rebooted device #816

Answered by karlp
karlp asked this question in Q&A
Apr 28, 2022 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

I got this "working" in the end by editing /etc/bluetooth/main.conf and setting Cache=yes instead of the default Cache=always

With the default, even though I have a new client, somehow the BleakGATTServiceCollection remains the same, or, more correctly I guess, is refilled by the cached values from blueZ, giving me the errors like so

2022-05-05 13:07:45,853 [ERROR] bleak.backends.service The service '1' is already present in this BleakGATTServiceCollection!
2022-05-05 13:07:45,855 [ERROR] bleak.backends.service The characteristic '2' is already present in this BleakGATTServiceCollection!
2022-05-05 13:07:45,855 [ERROR] bleak.backends.service The descriptor '4' is already present in this B…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@karlp
Comment options

@dlech
Comment options

dlech Apr 28, 2022
Collaborator

Comment options

You must be logged in to vote
6 replies
@karlp
Comment options

@dlech
Comment options

dlech May 5, 2022
Collaborator

@karlp
Comment options

@karlp
Comment options

@dlech
Comment options

dlech May 5, 2022
Collaborator

Answer selected by karlp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants