Skip to content

Python freezes when reader unavailable #134

Description

@jpkelly

I am running a script that polls the reader.

reader = mercury.Reader("llrp://10.39.54.202")
reader.set_read_plan([antenna], "GEN2", read_power=POWER[antenna - 1])
tag = reader.read(timeout=250)

When the reader becomes unavailable, running the reader.read function freezes the script and only a kill -9 will stop it.
I'd like to be able to exit cleanly when the reader becomes unavailable.

Any help appreciated!

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