If the characteristic has the "reliable-write" extended property, GattCharacteristic1.WriteValue will now start a reliable long-write procedure. --- src/gatt-client.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gatt-client.c b/src/gatt-client.c index 46af263..77e3539 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -870,6 +870,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; -- 2.2.0.rc0.207.ga3a616c -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html