i keep getting error this stack trace to be exact
java.io.IOException: Cannot start firmata device java.io.IOException: Cannot start firmata devi Caused by: jssc.SerialPortException: Port name - /dev/tty.usbmodem14501; Method name - openPort(); Exception type - Port busy.
heres my code
`
if (device == null) {
try {
device = new FirmataDevice(COM_PORT);
device.start();
device.ensureInitializationIsDone();
and i am also getting a error Cannot invoke "org.firmata4j.Pin.setMode(org.firmata4j.Pin$Mode)" because "pin" is null how is pin null when i initialized in the code above
i keep getting error this stack trace to be exact
java.io.IOException: Cannot start firmata device java.io.IOException: Cannot start firmata devi Caused by: jssc.SerialPortException: Port name - /dev/tty.usbmodem14501; Method name - openPort(); Exception type - Port busy.
heres my code ` if (device == null) { try { device = new FirmataDevice(COM_PORT); device.start(); device.ensureInitializationIsDone();