SuessLabs / Linux.Bluetooth

.NET Linux Bluetooth library for interfacing with peripherals using DBus BlueZ. Sponsored by Suess Labs
https://www.nuget.org/packages/Linux.Bluetooth/
Apache License 2.0
43 stars 5 forks source link

Advertising support #3

Open svedmark opened 1 year ago

svedmark commented 1 year ago

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 =]

DamianSuess commented 1 year ago

@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.

wcoder commented 1 year ago

Examples based on DotnetBleServer library:

DamianSuess commented 1 year ago

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

dconyers commented 1 year ago

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!

DamianSuess commented 1 year ago

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 :)