diff options
Diffstat (limited to 'binding-bluetooth')
-rw-r--r-- | binding-bluetooth/bluetooth-api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binding-bluetooth/bluetooth-api.c b/binding-bluetooth/bluetooth-api.c index 158c005..88b5832 100644 --- a/binding-bluetooth/bluetooth-api.c +++ b/binding-bluetooth/bluetooth-api.c @@ -384,6 +384,7 @@ static void bt_discovery_result (struct afb_req request) return; } + json_object *jresp = json_object_new_object(); json_object *my_array = json_object_new_array(); tmp = list; @@ -401,7 +402,9 @@ static void bt_discovery_result (struct afb_req request) adapter_devices_list_free(list); - afb_req_success(request, my_array, "BT - Scan Result is Displayed"); + json_object_object_add(jresp, "list", my_array); + + afb_req_success(request, jresp, "BT - Scan Result is Displayed"); } /**/ |