首页 > 解决方案 > How to subscribe a common characteristic for all the slaves connected with BLED112 in Windows 10?

问题描述

I am able to connect multiple ST Microelectronics peripherals with Windows 10 using BLED112 and pygatt library in Python. The only thing left is that I am unable to catch a disconnected event.

Moreover, I want to subscribe for notifications for all the 5 peripherals connected to BLED112 at once. I mean i need data from all of them simultaneously.

Now, the problem here is that when i run the script, I see all of the devices in a connected state, and some start to send data to the application, but the problem is that after some seconds, the notification remains for only one or two of them..

Other devices leave their connection with the BLED112. I need some sort of reconnection scenario as well.

Things to cover:

Disconnection event.
Subscribing all the devices at once and receive data.
Make a persistent connection for atleast an hour, with streaming live data.

Thanks in advance.

标签: pythonc#bluetooth-lowenergy

解决方案


推荐阅读