Possible to run notification on two different devices at once.
See original GitHub issue- bleak version: 0.6.4
- Python version: 3.6.5
- Operating System: OSX Catalina
Description
I’m trying to connect to some heart rate monitors and I can successfully connect to 1 and read the data properly, but I would like to connect and start notification on more than one device at the same time.
Is that possible with bleak?
What I Did
I defined an aync function connect_and_record
which connects to a device using the BleakClient
by UUID and starts notification with a handler that stores the data in a database.
I tried to run two devices using:
asyncio.gather(connect_and_record(uuid_1), connect_and_record(uuid_2))
.
What happens is the first device connects and begins notification, and then the second device connects and it seems to cancel out the first one.
If you have any suggestions I would appreciate it. Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Will push notifications show up on two phones? - Quora
Yes, Push Notifications will show up on both phones as long the App is present on both.
Read more >Is it possible to simultaneously receive a single push ...
No, it is not possible to simultaneously receive a single push notification (nor any other type of Duo two-factor authentication) on multiple devices...
Read more >How to Sync and Dismiss Notifications Across Multiple ...
Use this method to mirror your notifications across multiple Android devices. You can also dismiss the synced notifications.
Read more >iOS Message notifications - multiple dev… - Apple Community
iOS Message notifications - multiple devices. Often, when someone messages me, I will get the notification on my iPad, but not on my...
Read more >How to Sync Notifications between Android Devices - Hongkiat
You need to have two or more devices running Android 5 or later. They can be phones or tablets or even smartwatches —...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @hbldh
I would like to restart this issue again. I am unable to read notifications from two devices simultaneuously. I am running:
The code I am running is given below based on Issue 345:
I have
while 1: await sleep(1)
because I need to read notifications from both devices. If I replace that with justawait sleep(10)
for instance, then after 10 seconds, the second connected device notifications are read. However, my devices send notifications continuously, therefore I need to read data from both.It would be great if any suggestions/help can be provided.