SpacehuhnTech / Huhnitor

Intergalactic serial monitor for ESP8266 Deauther
MIT License
324 stars 44 forks source link

Serial port picker improvements #6

Closed the-Jamz closed 4 years ago

the-Jamz commented 4 years ago

Addresses issue #2

spacehuhn commented 4 years ago

Now it also detects a reconnected device and prints the port name it's automatically connecting to.

spacehuhn commented 4 years ago

But I'm not fully happy with this yet. I would like the auto connect method to also provide the manual selection feature like I described in the issue https://github.com/SpacehuhnTech/Huhnitor/issues/2.

Auto means you either plug in a new port or select one manually.
Manual means you must select on manually and the plug in detection is disabled.

I think the only way to implement this properly is to start a thread that waits on user input and one that waits on new ports being connected. Which ever finishes first, decides the port, the other thread is killed.