client/gatt: Fix property_change in WriteValue for desc
authorUlisses Costa <ulissesaraujocosta@gmail.com>
Mon, 6 Dec 2021 23:40:01 +0000 (00:40 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
g_dbus_emit_property_changed was not working properly in the WriteValue
for the descriptor because the Characteristic interface was being used.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client/gatt.c

index b952d9a..8141a7e 100755 (executable)
@@ -2748,7 +2748,7 @@ static DBusMessage *desc_write_value(DBusConnection *conn, DBusMessage *msg,
        bt_shell_printf("[" COLORED_CHG "] Attribute %s (%s) written",
                        desc->path, bt_uuidstr_to_str(desc->uuid));
 
-       g_dbus_emit_property_changed(conn, desc->path, CHRC_INTERFACE, "Value");
+       g_dbus_emit_property_changed(conn, desc->path, DESC_INTERFACE, "Value");
 
        return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
 }