Linux.Bluetooth icon indicating copy to clipboard operation
Linux.Bluetooth copied to clipboard

[Enhancement] Advertising support

Open svedmark opened this issue 2 years ago • 5 comments

I've tested this library for a BLE Beacon scanner, which works well using the device scanner. However, it would be fantastic if support for adding advertisements could be added so it's possible to create beacons also! I noticed the docs for the advertising manager are already in this repo, so this might already be planned or initiated? I haven't DBussed before, but with some collaboration I could maybe contribute to the implementation somehow...

For reference: https://github.com/SuessLabs/Linux.Bluetooth/blob/master/docs/BlueZ/advertising-api.txt

Thanks for the efforts so far btw =]

svedmark avatar Nov 30 '22 12:11 svedmark

@svedmark, That would be a good example to include to ensure that the feature is supported.

Added it to the backlog. If you're able to pick up the work item before I do, that would be great. Currently, the main focus I'm targeting is BLE Server supportability.

DamianSuess avatar Nov 30 '22 20:11 DamianSuess

Examples based on DotnetBleServer library:

  • https://github.com/phylomeno/dotnet-ble-server/tree/39e020fc9d447750b47548ef0e852d9c0660a15c/Examples
  • WIP https://github.com/wcoder/CPUTemp

wcoder avatar Apr 02 '23 13:04 wcoder

Thank you @wcoder! As soon as i wrap up the next release of Prism.Avalonia, i'll dig into it 👍

DamianSuess avatar Apr 03 '23 13:04 DamianSuess

Hello @DamianSuess - I'm trying to understand the current state of your library as it relates to BLE peripheral support. Does your library currently allow for advertisements and acting as a GATT server?

Specifically, I'm trying to understand if this feature request is just to author some demo code or if the actual implementation is still unimplemented?

Thanks in advance!

dconyers avatar Jun 05 '23 17:06 dconyers

The GATT Server portion can be wired in, however, I do not have helper classes programmed in just yet. By all means, if you want to contribute a PR to help improve, please do :)

DamianSuess avatar Jun 08 '23 22:06 DamianSuess