Fw 0.4.1 / why does odrive instance takes 30s to be created?

Here is my crack at it. I first create a USB connection. I then try to read the JSON object from a cache file. If that fails, I fall back to reading it from the odrive and writing the cache file. I probably need to invalidate the cache eventually, but I don’t know how to know it needs to be done. Maybe with the firmware version?

Edit: Using this cache, it takes about a second to connect from my laptop and about 2 seconds to connect on a Raspberry Pi.

3 Likes