p5-serial/p5.serialserver

Add command line argument for server port with default 8081

vanevery opened this issue · 1 comments

node startserver.js 8081
./startserver.js 8082
etc..

process.argv.forEach(function (val, index, array) {
console.log(index + ': ' + val);
});