Parent: 9aedde40496950000ca58e8554e76cff1bc512dc
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-07-05 14:26:01
Tree: 909bfc4559355c6b6cb58f266d27e6b3e90b1173
client: Add acquire-write command This adds acquire-write command which uses D-Bus AcquireWrite methods to acquire a file descriptor to write to locking the attribute: [Test peripheral:/service001f/char0020]# acquire-write [CHG] Attribute /org/bluez/hci1/dev_00_1B_DC_07_31_88/service001f/char0020 WriteAcquired: yes AcquireWrite success: fd 7 MTU 65 [Test peripheral:/service001f/char0020]# write 00 Attempting to write fd 7 < ACL Data TX: Handle 3585 flags 0x00 dlen 8 ATT: Write Command (0x52) len 3 Handle: 0x0021 Data: 00
Diffstat
| M | client/gatt.c | | | 73 | ++++++++++++++++++++++++++++++++++++++++ |
| M | client/gatt.h | | | 2 | ++ |
| M | client/main.c | | | 12 | ++++++++++++ |
3 files changed, 87 insertions(+), 0 deletions(-)