-
Notifications
You must be signed in to change notification settings - Fork 927
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
Hi,
Regarding the esp_msc_ota API:
I have a project that already uses the MSC class, so I have had to make some modifications to make it work:
1 - Since I already have an MSC instance up and running, I had to create another task for the esp_msc_ota to live in, so I could send it events ( MSC_CONNECT).
2 - I had to the modify the esp_msc_ota_begin code so it initializes the handle BEFORE it waits for the MSC_CONNECT event, because otherwise I had not handle to which I could send the event.
3 - I also needed to create a semaphore (msc_read_semaphore) for the reader.
The above means that I have to do modifications in the module which is sub-optimal.
I would like to know if you have an API somewhere, that is separate from the MSC implementation?
The current API ties the MSC to the OTA very close together and extra steps (see above) needs to be taken in order for it to work in an application that already has an MSC...
BR
Fink