Thanks for this wrapper.
I wanted to use it with a completely different device (from miflora), one that needs the 'random' address type instead of 'public'.
I've added an additional 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 without the argument will 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 with 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 (from miflora), one that needs the 'random' address type instead of 'public'.
I've added an additional 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 without the argument will 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 with 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?