mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
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:
parent
ed63d7e5a9
commit
9c2c9d3c71
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user