Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newky2k/dsoft.system.bluetoothle
Cross-platform Bluetooth Low Energy library, based on Plugin.BLE, for Xamarin.iOS, Xamarin.Android, UWP, Xamarin.Mac, .Net Core, TVOS(Preview) and WatchOS(Preview), Tizen(Coming soon)
https://github.com/newky2k/dsoft.system.bluetoothle
android bluetooth bluetooth-le bluetooth-low-energy ios net5 net6 netcore tizen tvos uwp xamarin xamarin-forms
Last synced: 7 days ago
JSON representation
Cross-platform Bluetooth Low Energy library, based on Plugin.BLE, for Xamarin.iOS, Xamarin.Android, UWP, Xamarin.Mac, .Net Core, TVOS(Preview) and WatchOS(Preview), Tizen(Coming soon)
- Host: GitHub
- URL: https://github.com/newky2k/dsoft.system.bluetoothle
- Owner: newky2k
- License: apache-2.0
- Created: 2020-05-22T10:46:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-05T15:52:30.000Z (8 months ago)
- Last Synced: 2024-12-17T11:20:15.488Z (23 days ago)
- Topics: android, bluetooth, bluetooth-le, bluetooth-low-energy, ios, net5, net6, netcore, tizen, tvos, uwp, xamarin, xamarin-forms
- Language: C#
- Homepage:
- Size: 1.24 MB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DSoft.System.BluetoothLe
Cross-platform Bluetooth Low Energy library, based on [Plugin.BLE](https://github.com/xabre/xamarin-bluetooth-le) , for Xamarin.iOS, Xamarin.Android, Xamarin.Mac, UWP(Preview), WPF for.Net Core 3.x and .Net Framework 4.6.1+(Preview - Windows 10 only), TVOS(Preview) and WatchOS(Preview), Tizen(coming soon)
## .Net Core 3.x support
We have had added .Net Core and .Net Framework 4.6.1+ support for Windows using the Windows RT API using `Microsoft.Windows.SDK.Contracts`. The UWP,.Net Core and .Net Framework implementations are essentially the same as they use the same APIs. We have duplicated `ObservableBluetoothLeDevice` from Windows Community Toolkit as it doesn't work with `Microsoft.Windows.SDK.Contracts`, .Net Core or .Net Framework. `ObservableBluetoothLeDevice` has been modified to use the WPF Application dispatcher on .Net Core and .Net framework.
### Note: .Net Core and .Net Framework support requires Windows 10 - version 1803 and above
### Plugin.BLE
As of 1st of June 2020 this is essentially [Plugin.BLE](https://github.com/xabre/xamarin-bluetooth-le) repackaged in a single Multi-target project with additional preview support for TVOS, WatchOS and .Net Core 3.x and .Net Framework 4.6.1+. Mac support is fixed(there is a [Plugin.BLE](https://github.com/xabre/xamarin-bluetooth-le/pull/431) issue with Assembly names when using Xamarin.Forms and Xamarin.Mac), based on the [UWP](https://github.com/xabre/xamarin-bluetooth-le/tree/uwp_creators_update) branch.
## Divergence
I have migrated the source code to single Multi-target library and added support for TVOS, .Net Core and WatchOS(untested). Additionally, I have moved away from Base classes (`DeviceBase`, `AdapterBase` etc) and are using multi-targeted partial classes instead.
I have changed the namespaces from `Plugin.BLE` to `System.BluetoothLe` and the main class from `CrossBluetoothLe` to `BluetoothLe`
This allows for seperation of the projects but also a fair amount of drop-in-ability for anyone using [Plugin.BLE](https://github.com/xabre/xamarin-bluetooth-le)
The docs on Plugin.BLE should still be acurrate, with the changes noted above taken into consideration.
## Preview
Xamarin.iOS, Xamarin.Android and Xamarin.Mac should be considered stable, as they are in Plugin.BLE.
All other platforms are in preview and essentially untested and compile without issue only.
This is a work in progress and although its based on a stable library, this will change and no guarenteee is made about the API at this stage or the stability of the library.
## RoadMap
The first step is to stabilize the API and supported platforms and then extend to other platforms (Tizen, UWP, WPF/Net Core).
New docs and samples