uno icon indicating copy to clipboard operation
uno copied to clipboard

[Epic] Bluetooth APIs

Open MartinZikmund opened this issue 3 years ago • 12 comments
trafficstars

What would you like to be added:

Cross-platform support for Bluetooth (especially LE).

Why is this needed:

Communicating with BLE devices easily.

For which Platform:

  • [x] iOS
  • [x] Android
  • [x] WebAssembly
  • [x] WebAssembly renderers for Xamarin.Forms
  • [x] macOS
  • [x] Skia
    • [x] WPF
    • [x] GTK (Linux)
    • [x] Tizen
  • [ ] Windows
  • [ ] Build tasks
  • [ ] Solution Templates

MartinZikmund avatar Jan 01 '22 12:01 MartinZikmund

This issue (or a part of it) will be tackled as a bachelor thesis by @DZetko

MartinZikmund avatar Jan 01 '22 12:01 MartinZikmund

So, my plans to implement Bluetooth for Android will be done by someone else? :)

pkar70 avatar Jan 01 '22 18:01 pkar70

@pkar70 ah sorry. But it is not necessarily the case, as for the thesis itself only a subset of the API will be implemented (and maybe only specific platforms) - will see later when the thesis abstract is ready.

MartinZikmund avatar Jan 01 '22 18:01 MartinZikmund

I welcome work done by others :) It saves my time :) By the way, can you return to this: "MartinZikmund commented on Jul 21, 2021 Let's close this one and fast track #2536 instead" (in #5349)? Fast track, half a year :)

pkar70 avatar Jan 01 '22 19:01 pkar70

Where can I follow the progress on this and potentially help out?

Arlodotexe avatar Apr 03 '22 05:04 Arlodotexe

Same question from my side. I can quickly publish PR with many BT structs, as I have them ready for some time.

pkar70 avatar Apr 04 '22 10:04 pkar70

@Arlodotexe @pkar70 I know @DZetko has started on this, but not sure what is the current status. However, as this is a bachelor thesis, he should ideally be mostly working on it alone (although I am pretty sure the scope will be a specific platform target)

MartinZikmund avatar Apr 05 '22 10:04 MartinZikmund

Do you know WHAT "scope will be a specific platform"? Maybe someone other can start work for another platform. And many structs should be universal (for all platforms). Maybe he can make PR from such structs. Or use them from #8505. And maybe, after three months (as this issue is from Jan 1st), something is already ready, and can be published?

pkar70 avatar Apr 05 '22 11:04 pkar70

What is current state of this bachelor thesis?

pkar70 avatar Aug 21 '22 06:08 pkar70

🙋 I'd also like to know

Arlodotexe avatar Aug 22 '22 19:08 Arlodotexe

Same here, Bluetooth support is the heart of our project and without it we can only support Windows.

yoshiask avatar Sep 08 '22 04:09 yoshiask

What is your requirements (for functionality)? Some functionality for Android, as e.g. get paired devices list, sending / receiving data with such devices, I can implement in relatively short time.

pkar70 avatar Sep 08 '22 06:09 pkar70

https://github.com/dotnet-bluetooth-le/dotnet-bluetooth-le

GitHub
Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, Windows - GitHub - dotnet-bluetooth-le/dotnet-bluetooth-le: Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, W...

MartinZikmund avatar May 31 '23 19:05 MartinZikmund

https://github.com/dotnet-bluetooth-le/dotnet-bluetooth-le

GitHub**GitHub - dotnet-bluetooth-le/dotnet-bluetooth-le: Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, Windows**Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, Windows - GitHub - dotnet-bluetooth-le/dotnet-bluetooth-le: Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, W...

Interesting @MartinZikmund. Is there any test of this library used within a Uno app?

igiona avatar Dec 28 '23 18:12 igiona

@igiona I haven't tested it personally yet, but it should work ok on the supported targets!

MartinZikmund avatar Mar 25 '24 13:03 MartinZikmund