[OpenWrt-Devel] [PATCH 1/1] ubus/lua: add support for BLOBMSG_TYPE_DOUBLE

2018-08-21 Thread marcus . comstedt
From: Marcus Comstedt Signed-off-by: Marcus Comstedt --- lua/ubus.c | 13 + 1 file changed, 13 insertions(+) diff --git a/lua/ubus.c b/lua/ubus.c index 00d9e00..4da3c80 100644 --- a/lua/ubus.c +++ b/lua/ubus.c @@ -111,6 +111,17 @@ ubus_lua_parse_blob(lua_State *L, struct blob_attr

[OpenWrt-Devel] [PATCH 0/1] ubus/lua: add support for BLOBMSG_TYPE_DOUBLE

2018-08-21 Thread marcus . comstedt
From: Marcus Comstedt Hi. I noticed that using luci.util.ubus() does not work correctly when the called function returned doubles (only nils are returned). This patch adds the capability of correctly forwarding BLOBMSG_TYPE_DOUBLE to lua. It is still not possible to send parameters of type