Skip to content

如何监听串口拔掉/插上 #4

Description

@wangliyang206

有没有一个API是监听串口断开和连接状态的?
因设备断开后BufferedReader.read会一直阻塞,所以无法用于判断。
有没有更好的方式知道已经断开了?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions