Skip to content

Automatic reconnection to USB Serial? #832

@vitasam

Description

@vitasam

Hi, I'm using Contact—a console UI app that relies on the Meshtastic Python library. I'm wondering: is there a way to make the Meshtastic library automatically reconnect after the PC wakes from standby?

At least on Linux Mint (ThinkPad L470), when the system resumes from sleep, the Contact app still responds to keyboard input, but the node is no longer connected. I have to press Esc (or sometimes even Ctrl+C) to exit Contact and restart it. Only then are the node and channel lists properly refreshed.

Would it make sense for the Meshtastic library itself to handle automatic reconnection? That way, individual apps wouldn't each need to implement their own reconnection logic. It could be a helpful feature for all users.

Thanks!

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