Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.2k
Commit66a38bb
committed
mpremote: Add automatic reconnect feature.
This adds a `reconnect` command that enables automatic reconnectionwhen 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 logicUsage: mpremote connect auto reconnect repl mpremote connect id:1234567890 reconnect replThe 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 portThis prevents accidental connections to different devices when using automode, while allowing id-based connections to find the device wherever itreappears.Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parentad0f34e commit66a38bb
File tree
3 files changed
+111
-7
lines changed- docs/reference
- tools/mpremote/mpremote
3 files changed
+111
-7
lines changedLines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
138 | 151 |
| |
139 | 152 |
| |
140 | 153 |
| |
|
Lines changed: 70 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| |||
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| 47 | + | |
| 48 | + | |
46 | 49 |
| |
47 | 50 |
| |
48 | 51 |
| |
| |||
51 | 54 |
| |
52 | 55 |
| |
53 | 56 |
| |
54 |
| - | |
55 | 57 |
| |
56 | 58 |
| |
57 | 59 |
| |
| 60 | + | |
| 61 | + | |
58 | 62 |
| |
59 | 63 |
| |
60 | 64 |
| |
61 | 65 |
| |
62 | 66 |
| |
63 | 67 |
| |
64 | 68 |
| |
| 69 | + | |
| 70 | + | |
65 | 71 |
| |
66 | 72 |
| |
67 | 73 |
| |
| |||
70 | 76 |
| |
71 | 77 |
| |
72 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
73 | 134 |
| |
74 | 135 |
| |
75 | 136 |
| |
| |||
484 | 545 |
| |
485 | 546 |
| |
486 | 547 |
| |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
487 | 556 |
| |
488 | 557 |
| |
489 | 558 |
| |
|
Lines changed: 27 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
| |||
281 | 283 |
| |
282 | 284 |
| |
283 | 285 |
| |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
284 | 290 |
| |
285 | 291 |
| |
286 | 292 |
| |
| |||
493 | 499 |
| |
494 | 500 |
| |
495 | 501 |
| |
| 502 | + | |
| 503 | + | |
| 504 | + | |
496 | 505 |
| |
497 | 506 |
| |
498 | 507 |
| |
| |||
574 | 583 |
| |
575 | 584 |
| |
576 | 585 |
| |
577 |
| - | |
578 |
| - | |
579 |
| - | |
580 |
| - | |
581 |
| - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
582 | 604 |
| |
583 | 605 |
| |
584 | 606 |
| |
|
0 commit comments
Comments
(0)