You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a situation where I'm going to be connecting to upto 20 devices and I want to spread them across 3 or 4 bluetooth adapters. bluepy won't let me select which adapter to use yet.
So I did a little digging and I think I can patch it in quite easily. Here's my plan:
opt_src is always set to NULL in gatt_connect() right now
Instead what I would like is for the conn command to take an additional optional string for the interface to use hci0 hci1 etc... to set the opt_src in the gatt_conn call.
I'm going to make this an optional argument to the conn command so that the default behavior stays the same.
The text was updated successfully, but these errors were encountered:
I've taken your code and it's now merged on to master with a few bug fixes, along with calandoa's scanning code.
You can now take scan results (the ScanEntry object) and pass it direct to Peripheral's constructor, to make a connection to a device you just scanned. The ScanEntry object keeps a note of the interface being used for the scan, and passes it to Peripheral.connect(), so it ought to work seamlessly.
I'm working on a situation where I'm going to be connecting to upto 20 devices and I want to spread them across 3 or 4 bluetooth adapters. bluepy won't let me select which adapter to use yet.
So I did a little digging and I think I can patch it in quite easily. Here's my plan:
opt_src is always set to NULL in gatt_connect() right now
Instead what I would like is for the conn command to take an additional optional string for the interface to use hci0 hci1 etc... to set the opt_src in the gatt_conn call.
I'm going to make this an optional argument to the conn command so that the default behavior stays the same.
The text was updated successfully, but these errors were encountered: