tools/mesh-cfgclient: Display unprovisioned OOB data 71/229671/1
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Wed, 1 Apr 2020 10:24:57 +0000 (12:24 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Wed, 1 Apr 2020 21:02:12 +0000 (02:32 +0530)
Change-Id: I9257279860ca2e7fb537d9de9b02d4ecb3ab737f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
tools/mesh-cfgclient.c

index 0af8182..7df76ef 100644 (file)
@@ -1559,6 +1559,19 @@ static struct l_dbus_message *scan_result_call(struct l_dbus *dbus,
        bt_shell_printf("\t" COLOR_GREEN "UUID = %s\n" COLOR_OFF, str);
        l_free(str);
 
+       if (n >= 18) {
+               str = l_util_hexstring_upper(prov_data + 16, 2);
+               bt_shell_printf("\t" COLOR_GREEN "OOB = %s\n" COLOR_OFF, str);
+               l_free(str);
+       }
+
+       if (n >= 22) {
+               str = l_util_hexstring_upper(prov_data + 18, 4);
+               bt_shell_printf("\t" COLOR_GREEN "URI Hash = %s\n" COLOR_OFF,
+                                                                       str);
+               l_free(str);
+       }
+
        /* TODO: Handle the rest of provisioning data if present */
 
        dev = l_queue_find(devices, match_device_uuid, prov_data);