juliansteenbakker / flutter_ble_peripheral

A Flutter package for advertising BLE data in peripheral mode
BSD 3-Clause "New" or "Revised" License
72 stars 50 forks source link

GATT SERVER #85

Open SwapnaliInsiza opened 2 years ago

SwapnaliInsiza commented 2 years ago

Hi Guys, This package does help in advertising the Android device as peripheral. Any help with building connection between the peripheral and host? Can we have the GATT services added within this package as that will extend the functionality within the package?

MrCsabaToth commented 1 year ago

I'm looking at the code and I don't see how to communicate data via the advertised service. For me there wouldn't be reasonable to advertise something without being able to communicate. So it wouldn't just look like a duck but it would walk and quack like a duck.

MrCsabaToth commented 1 year ago

Looks like there's a ton of commented TODO code related to sendData and setting up a server and characteristic. I tried to brush it up but my problem is that even the simple example (without sendData or anything) doesn't work. The advertised service doesn't shop up in any scans.