Below code is doubling counts i don' know why, i just want one pulse on trig when its up... but it counts second up when pulse is longer than 1 or 2 seconds.... very strange.
I use nodemcu_float_0.9.6-dev_20150704.
function gasInterrupt()
print("Gaspuls Detected")
PulseGas = PulseGas + GasCounterValue
tmr.delay(10000)
print(PulseGas)
end
end
and
gpio.mode(pin, gpio.INT)
gpio.trig(pin, "up", gasInterrupt)