Configurable "BluetoothLEAdvertisementWatcher"
Closed this issue · 2 comments
MarcorOnline commented
Hello.
Can you add the possibility to provide the BluetoothLEAdvertisementWatcher instance in the WindowsBluetoothPacketProvider constructor?
I need to configure SignalStrengthFilter and currently I'm using reflection:
_windowsBluetoothPacketProvider = new WindowsBluetoothPacketProvider();
_beaconManager = new BeaconManager(_windowsBluetoothPacketProvider);
var field = typeof(WindowsBluetoothPacketProvider).GetField("_watcher", BindingFlags.NonPublic | BindingFlags.Instance);
var watcher = (BluetoothLEAdvertisementWatcher) field.GetValue(_windowsBluetoothPacketProvider);
watcher.SignalStrengthFilter ... (etc)
I thin that can be very usefull.
Best regards
Marco
MarcorOnline commented
@ctacke I've looked at the PR and I think that is perfect 👍
Thanks