Diff between d3046c09ea7dd9d3126d55e6988953d86d31ef2e and bf94ea8e69faa317418c3b8ad2464a7e6d85edfb

Changed Files

File Additions Deletions Status
src/gatt-client.c +9 -0 modified

Full Patch

diff --git a/src/gatt-client.c b/src/gatt-client.c
index 0eae578..fe51997 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -874,6 +874,15 @@ static DBusMessage *characteristic_write_value(DBusConnection *conn,
 	 *     - If value is larger than MTU - 3: long-write
 	 *   * "write-without-response" property set -> write command.
 	 */
+	if ((chrc->ext_props & BT_GATT_CHRC_EXT_PROP_RELIABLE_WRITE)) {
+		supported = true;
+		chrc->write_id = start_long_write(msg, chrc->value_handle, gatt,
+						true, value, value_len,
+						chrc, chrc_write_complete);
+		if (chrc->write_id)
+			return NULL;
+	}
+
 	if (chrc->props & BT_GATT_CHRC_PROP_WRITE) {
 		uint16_t mtu;