Re: Are there any simple GATT examples?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Joshua,

On Sun, Jun 7, 2015 at 4:22 AM, Joshua Kramer <joskra42.list@xxxxxxxxx> wrote:
> Hello-
>
> Is there an example of a GATT server that implements a simple
> socket-type connection?  I am creating a device based on Raspberry Pi
> that needs to be controlled via an Android app.  I am using bluez on
> the Pi side.

Well a GATT service/attribute alone cannot do socket-type connection,
what you can do is to use write and read/notifications to emulate it
but the proper way would be to use connection oriented channels if
Android support it (which I don't think it does).

If you are just after a generic example there is one in BlueZ source
tree: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/test/example-gatt-server


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux