forked from dotnet-bluetooth-le/dotnet-bluetooth-le
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dotnet-bluetooth-le#855 from alex3696/master
fix dotnet-bluetooth-le#854 - Bluetooth stack breaks when trying connect on phone boot
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Source/Plugin.BLE/Android/Extensions/BluetoothDeviceExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Android.Bluetooth; | ||
|
||
namespace Plugin.BLE.Android.Extensions | ||
{ | ||
public static class BluetoothDeviceExtension | ||
{ | ||
public static bool SupportsBLE(this BluetoothDevice d) | ||
{ | ||
return d.Type == BluetoothDeviceType.Le || d.Type == BluetoothDeviceType.Dual; | ||
} | ||
} | ||
} |