node_hcsr04
node_hcsr04 copied to clipboard
timer has nil value?
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.
I'm facing the same issue when I use nodemcu Devkit (Amica). Did you find any solution to this?
Do you both have the timer module installed with your firmware?