Skip to content

Checking data before reading (non-blocking) #52

@TelegramXPlus

Description

@TelegramXPlus

I would like to combine serial.nim and Arduino for a project of mine yet the line

port.readLine() is blocking and unless I create a second thread for handling other things the code does not work (it just waits for data). I would like to have something like Arduino Serial.available() or python ser.in_waiting so that I don't have to split the code into multiple threads

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