diff options
author | Bruna Moreira <bruna.moreira@openbossa.org> | 2010-08-12 10:48:40 -0400 |
---|---|---|
committer | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-08-26 09:29:56 -0400 |
commit | a5e5c9262a7fa20b03643c478f1620995a89ad79 (patch) | |
tree | 6236cda48fb5098c8e396ecfa4775d54c822546e /src/storage.h | |
parent | 05a3ffaf6ed7c01d2b05b1edebfbf810f3eb8fe2 (diff) | |
download | bluez-a5e5c9262a7fa20b03643c478f1620995a89ad79.tar.gz bluez-a5e5c9262a7fa20b03643c478f1620995a89ad79.tar.xz bluez-a5e5c9262a7fa20b03643c478f1620995a89ad79.zip |
Support for storing attribute data
Create a new storage called "attributes" to save attribute data.
Format description:
<bt_addr>#<attr_handle> <attr_type>#<attr_value>
- the key is composed of the device address and the attribute handle;
- the value is composed of the attribute type UUID (converted to
printable 128-bit format) and the attribute value (hex encoded).
- the key/value components are joined with "#", and separated from each
other by a space.
Diffstat (limited to 'src/storage.h')
-rw-r--r-- | src/storage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h index dbe2f412..dcba2ce5 100644 --- a/src/storage.h +++ b/src/storage.h @@ -85,6 +85,8 @@ int write_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, uint16_t handle, const char *chars); char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, uint16_t handle); +int write_device_attribute(const bdaddr_t *sba, const bdaddr_t *dba, + uint16_t handle, const char *chars); #define PNP_UUID "00001200-0000-1000-8000-00805f9b34fb" |