Skip to content

Serial.list does not update. #1256

@bonner72

Description

@bonner72

Most appropriate sub-area of Processing 4?

Events, IO

Processing version

4.4.7

Operating system

Windows 10

Bug description

I noticed that when you physically remove a connected serial device processing does not detect it and serial.list() does not update.

Steps to reproduce this

1.connect serial device.

2.run below sketch (set correct serial port).

3.unplug serial device.

snippet

import processing.serial.*;

Serial myPort;  // Create object from Serial class

void setup() 
{
  size(200, 200);

  String portName = Serial.list()[0];
  myPort = new Serial(this, portName, 9600);
}

void draw()
{
  println(Serial.list());
  delay(500);
}

Additional context

The https://fazecast.github.io/jSerialComm/ library can detect hardware disconnects.

Would you like to work on the issue?

No, I’m just reporting the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions