processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

Serialserver implementation never closes port #168

Open lmccart opened 8 years ago

lmccart commented 8 years ago

When you use p5.serialport in the editor (0.5.4 or later) the serialport in the serialserver is never closed when you stop the sketch. The problem with this is that, when you restart the sketch, the port you opened previously is still open. This causes problems for other applications attempting to open the port (like Arduino IDE). It also makes it impossible to choose a new port.

See p5.serialport PR #10 (vanevery/p5.serialport#10) for an example of this in action.

repost from @tigoe https://github.com/processing/p5.js/issues/964