summaryrefslogtreecommitdiff
path: root/mesh/main.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2017-09-08 15:19:34 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-09-11 16:02:12 +0300
commit9c2c9d3c713f5e08acfb54bd988f6272bb7f58e1 (patch)
tree25e85cb5f10361f41662d9711f897182ae2009b2 /mesh/main.c
parented63d7e5a9f6caff820745de657bea6faad8e6ee (diff)
downloadbluez-9c2c9d3c713f5e08acfb54bd988f6272bb7f58e1.tar.gz
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.
Diffstat (limited to 'mesh/main.c')
-rw-r--r--mesh/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesh/main.c b/mesh/main.c
index 42506a629..3a39d8f62 100644
--- a/mesh/main.c
+++ b/mesh/main.c
@@ -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);
}
}