mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Print array in callback
This commit is contained in:
parent
881b613d1e
commit
0030119350
1 changed files with 1 additions and 1 deletions
|
@ -340,6 +340,7 @@ static void ubus_get_clients_cb(struct ubus_request *req, int type, struct blob_
|
|||
|
||||
str = blobmsg_format_json_indent(msg, true, -1);
|
||||
printf("%s\n", str);
|
||||
print_client_array();
|
||||
free(str);
|
||||
}
|
||||
|
||||
|
@ -350,6 +351,5 @@ static int ubus_get_clients() {
|
|||
return ret;
|
||||
int timeout = 1;
|
||||
int ubus_shit = ubus_invoke(ctx, id, "get_clients", NULL, ubus_get_clients_cb, NULL, timeout * 1000);
|
||||
printf("Ubus Shit: %d", ubus_shit);
|
||||
return ubus_shit;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue