Skip to content

Passing port listener to port is clunky and errorprone #87

@Omnieboer

Description

@Omnieboer

Currently, to add an event listener to a port you have to do:

port.addEventListener(new MyPortListener(port));

where you add the listener to the port and pass the same port to the new MyPortListener class.

Instead I propose the SerialPortEvent gets passed the bytes in the buffer as the event fires.

Closed by #86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions