gattlib icon indicating copy to clipboard operation
gattlib copied to clipboard

Peripheral BLE device

Open AnDrOiD-73 opened this issue 7 years ago • 2 comments

Thank you for your library. Can I use your library to create peripheral BLE device?

I need the following functional:

  1. add custom service and set UUID for it
  2. add custom characteristics to this service and set UUID for each of them
  • read only characteristic
  • write only characteristic
  • notification characteristic
  1. change MTU by central device
  2. notify connected devices when value has been changed
  3. callback for:
  • connect/disconnect device
  • read characteristic
  • write characteristic

AnDrOiD-73 avatar Sep 06 '17 07:09 AnDrOiD-73

I agree - this would be an Awesome addition to this library. I don't think it currently allows you to create a GATT Server. BlueZ 4.101 source code has "tools/btgatt-server.c".

phishstang65 avatar Sep 09 '17 23:09 phishstang65

I have already created a couple of GATT server (ie: Peripheral BLE device) using Bluez DBus API. And I think it is the best approach rather than to create a library.

oliviermartin avatar Oct 07 '17 22:10 oliviermartin