Thanks for this wrapper.
I wanted to use it with a completely different device, one that needs the 'random' address type instead of 'public'.
I've added an aditional argument to the bluetooth interface to allow this. The default is still 'public' so
BluetoothInterface(backend, adapter) is equal to BluetoothInterface(backend, adapter, address_type='public') meaning scripts implementing btewrap in the 'old' way should still work the same, but it also allows you run run BluetoothInterface(backend, adapter, address_type='random') to use the random address type.
I've implemented this in all three backends but was only able to test it for bluepy and gatttool as pygatt doesn't seem to work on my system. I think it should work, maybe you can take a look and confirm this?
Thanks for this wrapper. I wanted to use it with a completely different device, one that needs the 'random' address type instead of 'public'.
I've added an aditional argument to the bluetooth interface to allow this. The default is still 'public' so
BluetoothInterface(backend, adapter)
is equal toBluetoothInterface(backend, adapter, address_type='public')
meaning scripts implementing btewrap in the 'old' way should still work the same, but it also allows you run runBluetoothInterface(backend, adapter, address_type='random')
to use the random address type.I've implemented this in all three backends but was only able to test it for bluepy and gatttool as pygatt doesn't seem to work on my system. I think it should work, maybe you can take a look and confirm this?