node_hcsr04 icon indicating copy to clipboard operation
node_hcsr04 copied to clipboard

timer has nil value?

Open wydmynd opened this issue 10 years ago • 2 comments

after ~10 successful readings I will get an error -

PANIC: unprotected error in call to Lua API (hcsr04.lua:42: attempt to index global 'tmr' (a nil value))

line 42 is a delay(100) command... so is there something with the triggers making it screw up?

update: without sensor connected returns 0 and no errors. so probably some hardware issue.

wydmynd avatar Oct 23 '15 17:10 wydmynd

I'm facing the same issue when I use nodemcu Devkit (Amica). Did you find any solution to this?

jeeturk avatar Mar 30 '16 09:03 jeeturk

Do you both have the timer module installed with your firmware?

jonasgeiler avatar Apr 10 '17 07:04 jonasgeiler