From 64529d64149379c670326c6ad5b98e9827fffe17 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Sat, 30 Dec 2017 15:43:38 +0100 Subject: [PATCH] use notify --- src/utils/ubus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 9552119..e7ca638 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -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);