[fluksod] send accepted incoming pulses to syslog
This commit is contained in:
parent
cd5ff2ed60
commit
5bffb794d7
|
@ -157,6 +157,8 @@ function wan_buffer(child)
|
||||||
and counter ~= (previous[sensor_id].counter or 0)
|
and counter ~= (previous[sensor_id].counter or 0)
|
||||||
then
|
then
|
||||||
|
|
||||||
|
nixio.syslog('info', string.format('received pulse %s:%s:%s', sensor_id, timestamp, counter))
|
||||||
|
|
||||||
measurements:add(sensor_id, timestamp, counter)
|
measurements:add(sensor_id, timestamp, counter)
|
||||||
previous[sensor_id].timestamp = timestamp
|
previous[sensor_id].timestamp = timestamp
|
||||||
previous[sensor_id].counter = counter
|
previous[sensor_id].counter = counter
|
||||||
|
|
Loading…
Reference in New Issue