You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a `reconnect` command that enables automatic reconnection
when a device disconnects. The reconnect feature:
- For direct port connections: reconnects to the exact same port
- For `id:` connections: searches for the device by serial number on any port
- Shows clear status messages during reconnection
- Preserves resume state through reconnections
- Handles Windows timing issues with retry logic
Usage: mpremote connect auto reconnect repl
mpremote connect id:1234567890 reconnect repl
The reconnect command behaves differently based on connection type:
- For `auto` and direct ports: only reconnects to the exact same port
- For `id:` connections: finds the device on any available port
This prevents accidental connections to different devices when using auto
mode, while allowing id-based connections to find the device wherever it
reappears.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
0 commit comments