Skip to content

Compatibility with bluepy v1.3.0 #8

@BensonHsu

Description

@BensonHsu

[Symptom]
Sbrick-server.py could not connect to SBRICK again after a while, when using bluepy v1.3.0. You could find lots of messages like below if encounters this issue:

main.BTLEException: Failed to connect to peripheral <SBRICK MAC>, addr type: public

[Work around]
When this happens, the only way to re-connect to SBRICK is: (you could chose one of them)

  1. Power off / on SBRICK
  2. Use bluetoothctl to disconnect SBRICK manually:
$ bluetoothctl
[bluetooth]# disconnect <SBRICK MAC>

There is no such issue with bluepy v1.1.4, and I have no idea why this could happen. I would suggest to use bluepy v1.1.4 for now until this is fixed. I also created a new branch "bluepy_v1_1_4" in this repository if you would like a stable one. In this branch, you should use version v1.1.4 bluepy. Use below commands to install bluepy v1.1.4 manually.

# make sure what bluepy version installed
pip3 list | grep -in bluepy

# if version is not 1.1.4, re-installed it
pip3 uninstall bluepy
pip3 install bluepy==1.1.4

Metadata

Metadata

Assignees

Labels

compatibilityCompatibility issue with 3rd party project

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions