ddetommaso / TobiiGlassesPyController

Tobii Pro Glasses 2 Python controller
GNU General Public License v3.0
56 stars 28 forks source link

`__init__` hangs forever on bad connection #14

Closed rmaronson closed 4 years ago

rmaronson commented 4 years ago

The while loop in wait_for_status should take a timeout and return or throw an exception after the sleep counter reaches that value, and __init__ should take a timeout param that it passes to __connect__. Otherwise I have to force-kill it every time I mistype the ip!

ddetommaso commented 4 years ago

Adding a timeout it's definitely a nice improvement! Please feel free to open PR!

Any further help is much appreciated!Thanks

rmaronson commented 4 years ago

added #15