13.10.2023, 13:18
Your code has a typo in line 1 - it should be require('bacnet'). But this line is not needed at all as the script does not use any bacnet library functions.
Next time check Error log when script is not working.
Next time check Error log when script is not working.