mesh: Add characteristic property name check

If PropertyChanged signal is not emitted due to a change in
characteristic's "Value" property, the characteristic does
not need to be processed.
This commit is contained in:
Inga Stotland 2017-09-08 15:19:34 -07:00 committed by Luiz Augusto von Dentz
parent ed63d7e5a9
commit 9c2c9d3c71

View File

@ -1295,8 +1295,9 @@ static void property_changed(GDBusProxy *proxy, const char *name,
rl_printf("Characteristic property changed %s\n",
g_dbus_proxy_get_path(proxy));
if ((connection.type == CONN_TYPE_PROVISION) ||
connection.session_open)
if ((strcmp(name, "Value") == 0) &&
((connection.type == CONN_TYPE_PROVISION) ||
connection.session_open))
process_mesh_characteristic(proxy);
}
}