Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discoverable device, any hint? #30

Open
jmcazaux opened this issue Mar 14, 2024 · 1 comment
Open

Discoverable device, any hint? #30

jmcazaux opened this issue Mar 14, 2024 · 1 comment

Comments

@jmcazaux
Copy link

Hi there,
I have seen issue #20 and the library does not support discoverable devices as is.

I am playing a bit with the library and I have a use where I'd like to use as a relay (between a rowing machine and its mobile app).

Provided you think it is doable, I am keen on trying to implement add the "server" features.

It would be great though if you could give me a few hints on where to start / how to proceed.
And if you had a bit of guidance on how to architecture the thing so that it fits nicely in your design, that would be awesome.

Thanks in advance,

@weliem
Copy link
Owner

weliem commented Mar 16, 2024

it is certainly possible!

I don't have the time to do it but would welcome such an addition. My Bluez_Inc library support creating a peripheral so you could have a look at that.

Here is what you roughly need to do:

  • Publish your services and characteristics on the Dbus. Have a look at the Agent implementation to see how you publish object on the .
  • Create an advertisement object on the Dbus.
  • Create a Bluez 'application', see bluez documentation
  • handle incoming read/write/notify requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants