From 31d74307597c337ca69d36a243bd3a59637b3344 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 20 Aug 2019 13:38:54 +0300 Subject: [PATCH] client: Allow UUID 16 bits on select-attribute This allow passing UUIDs on 16 bits format. --- client/gatt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/gatt.c b/client/gatt.c index e03ef9679..1de87364d 100644 --- a/client/gatt.c +++ b/client/gatt.c @@ -526,6 +526,9 @@ static GDBusProxy *select_proxy_by_uuid(GDBusProxy *parent, const char *uuid, if (strcasecmp(uuid, value) == 0) return proxy; + + if (strlen(uuid) == 4 && !strncasecmp(value + 4, uuid, 4)) + return proxy; } return NULL; -- 2.47.3