mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
use notify
This commit is contained in:
parent
d31bfa5e07
commit
64529d6414
1 changed files with 2 additions and 1 deletions
|
@ -1016,8 +1016,9 @@ static void ubus_add_oject()
|
|||
|
||||
|
||||
static void respond_to_notify(uint32_t id) {
|
||||
printf("SENDING NOTIFY!!!\n");
|
||||
blob_buf_init(&b, 0);
|
||||
blobmsg_add_u32(&b, "notify_response", 1234);
|
||||
blobmsg_add_u32(&b, "notify_response", 0);
|
||||
|
||||
int timeout = 1;
|
||||
ubus_invoke(ctx, id, "notify_response", b.head, NULL, NULL, timeout * 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue