OSDN Git Service

attrib: Add support for 128-bit characteristic UUIDs in gatt_service_add
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>
Mon, 29 Jul 2013 18:42:50 +0000 (11:42 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 30 Jul 2013 09:59:15 +0000 (12:59 +0300)
commitfabd565565539b232051f0d213b7655db1f36117
tree2f14590c7cf01534aa3d2dc24a69866696f7f313
parent1208266dccd2f5061a3e669c04585727a9b0fb43
attrib: Add support for 128-bit characteristic UUIDs in gatt_service_add

Custom GATT services typically use 128-bits UUIDs; this patch allows for
using gatt_service_add to define such services by adding a new option
GATT_OPT_CHR_UUID, which allows for passing bt_uuid_t* values. Note, a
previous patch renamed the old GATT_OPT_CHR_UUID into
GATT_OPT_CHR_UUID16.
attrib/gatt-service.c
attrib/gatt-service.h