arvydas / blinkstick-python

BlinkStick Python interface to control devices connected to the computer
Other
136 stars 53 forks source link

Support retries #60

Open harlowja opened 5 years ago

harlowja commented 5 years ago

It appears the the underlying sending data over usb is pretty prone to failure.

It would be nice to support some ability to retry, perhaps by having a retry object from https://github.com/jd/tenacity#tenacity being passed into the blinkenstick constructor, which the usb sending code to then call whenever a usb data transfer failure occurs.

Using such a library should make it possible to allow the old behavior and any new behavior work at the same time.