I have the following use case:
- App is running on phone.
- User connects accessory to phone.
- Accessory puts phone in accessory mode.
- After reconnecting and opening the right USB endpoint, accessory immediately tries to send data to app.
At step 4, I get
USB error 7: Transfer error on bulk endpoint: Operation timed out on the accessory. Presumably this happens because the app has not yet opened the InputStream.
What is the correct way to handle this situation?