cncjs/cncjs-pendant-boilerplate

Request: Example handling `serialport:close`

Opened this issue · 0 comments

It would be good to have a pendant example that correctly reinitialized itself after a serialport:close socket event, coming from the close connection button in the UI.

I'm making use of smooth jogging and, after the connection is closed, have not been able to reinitialize the connection in the pendant in such a way that I'm able to receive serialport:read afterward. Instead I'm just doing a process.exit() and letting pm2 reinitialize it.