From 8d28890acb72c80fd1e321628e3078fc5f5881c8 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Mon, 24 Jan 2011 18:53:51 +0100 Subject: [PATCH] [fluksod] return timestamp as first part of the delta reply --- mote/v2/openwrt/package/flukso/luasrc/flukso/spi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mote/v2/openwrt/package/flukso/luasrc/flukso/spi.lua b/mote/v2/openwrt/package/flukso/luasrc/flukso/spi.lua index 3525ecf..3425f02 100644 --- a/mote/v2/openwrt/package/flukso/luasrc/flukso/spi.lua +++ b/mote/v2/openwrt/package/flukso/luasrc/flukso/spi.lua @@ -159,7 +159,7 @@ function decode(msg) nixio.bin.hextonum(msg.decoded.args:sub((i-1)*18 + 11, (i-1)*18 + 18)) end - msg.decoded.delta = msg.decoded.cmd .. ' ' .. table.concat(msg.decoded, ' ') + msg.decoded.delta = os.time() .. ' ' .. table.concat(msg.decoded, ' ') elseif msg.decoded.cmd == 'gv' then elseif msg.decoded.cmd == 'gp' then