gatt icon indicating copy to clipboard operation
gatt copied to clipboard

Accessing raw connection.

Open james-lawrence opened this issue 10 years ago • 1 comments
trafficstars

How do I, with a server, listen for connections and then read in the stream of data from the client?

closest I see is on the conn struct and the HCI object for the Stream IO. But there is not way to listen for new connections and handle them, the HCI object is hidden within the device struct. Maybe I'm just not seeing what this library was designed for?

james-lawrence avatar Jul 12 '15 19:07 james-lawrence

I'm not sure I'm following your question. Can you elaborate a bit?

This GATT library intends to provides BLE at GATT level. On linux, we do export some options for user to specify, but it's minimal.

Take a look at the examples/server.go or examples/server_lnx.go, which implement a very battery service and a custom counter service.

roylee17 avatar Jul 14 '15 23:07 roylee17