diff options
author | Eder Ruiz Maria <eder.ruiz@openbossa.org> | 2012-07-30 13:38:34 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-08-15 11:58:43 +0300 |
commit | 7040dc92fc1d4fbb1eb05a520e1f2b9853ed48b0 (patch) | |
tree | b67fbe2641b5d37023297e0b0c1bcbc69290e471 /attrib/gatttool.c | |
parent | f5cf20bb066e0ec9ccbc4c51c167d2a79c04d4b4 (diff) | |
download | bluez-7040dc92fc1d4fbb1eb05a520e1f2b9853ed48b0.tar.gz |
gatt: Add support to GATT Write Long Characteristic
Extending the function gatt_write_char for support GATT Write Long
Characteristics. MTU is checked and if the payload does not fit,
the prepare and execute write are used to do the transaction.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r-- | attrib/gatttool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c index 1f23522dc..a11ca9fca 100644 --- a/attrib/gatttool.c +++ b/attrib/gatttool.c @@ -371,7 +371,7 @@ static void char_write_req_cb(guint8 status, const guint8 *pdu, guint16 plen, goto done; } - if (!dec_write_resp(pdu, plen)) { + if (!dec_write_resp(pdu, plen) && !dec_exec_write_resp(pdu, plen)) { g_printerr("Protocol error\n"); goto done; } |