afra/afra_door

nodejs: add support for timeout

Opened this issue · 0 comments

There are not timeout on action with the lock. It would be good, to setup timeout and react based on it.

  • 1st: use a open() to recover if an unlock fail once
  • 2nd: Disconnect & Reconnect to the lock if a timeout exceeded try to recover.
  • Log timeout.