2024-02-28 01:04 AM
Hi, I want connect my SensorTile box with my Raspberry pi. For this, I use example_ble_1.py, but every time when i try to connect the devices then one of the given errors occur: guest@raspberrypi:~ $ sudo python3 example_ble_1.py ################## BlueST Example################## Scanning Bluetooth devices... Discovery started. During handling of the above exception, another exception occurred: Traceback (most recent call last): guest@raspberrypi:~ $ sudo python3 example_ble_1.py ################## BlueST Example################## Scanning Bluetooth devices... Discovery started. Available Bluetooth devices:
Select a device to connect to ('0' to quit): 1 Exiting... |
2024-02-29 04:58 AM
Hi @Milan127 ,
Welcome to ST Community!
The python implementation of BlueST protocol (BlueST SDK) uses the bluepy BLE stack.
Due to this, one of the limitations of bluepy is that when running a discovery process the already connected devices get disconnected.
You can read about this here: BlueSTSDK_Python
I can suggest you to first disconnect the device and then try to connect to it and see if this mitigates the intrinsic bluepy issue.
2024-02-29 07:38 AM
Hi @Federica Bossi,
I don't really get it, how can I disconnect the SensorTilebox when I can't even connect in the first place? Might it be someting else that can cause this problem?
2024-03-01 12:44 AM
The Sensortile that I am using is the STEVAL-MKSBOX1V1.