I am trying to download files during an OTA operation from a bitbucket repository but the operation is failing with error code -20310.
Is it possible to perform OTA operation with Bitbucket?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am trying to download files during an OTA operation from a bitbucket repository but the operation is failing with error code -20310.
Is it possible to perform OTA operation with Bitbucket?
I have kept OTA_SERVER_TYPE as OTA_SERVER_GITHUB , I am not using customized CDN vendor approach , and I am using the library for download using a known URL that is provided by bitbucket.
I have already tried OTA with both GITHUB and DROPBOX and both are working without any fail but when I try to use the same library which I used for GITHUB during bitbucket download it fails.
If you know the URL for the download, please use OTA_USING_KNOWN_URL and then you will need to set address using OTA_set(EXTLIB_OTA_SET_OPT_SERVER_INFO, ...), as part of the OTA initialization sequence (see the cloudOTA for example).
In you current configuration, the OTA library starts by trying to check the content of the project folder, looking for a new update. Each CDN vendor has its own method/API for this and i guess the github method is different from the bitbucket one (which leads to the failure you see: OTA_HTTP_CLIENT_ERROR_RESP_STATUS_NOT_OK).
Br,
Kobi
I tried searching OTA_USING_KNOWN_URL but I could not find it.
I am using SDK 2.10.0.04 and I searched for it in the latest SDK also but I could not find any term related to it.
Can u please tell me where to set the URL of my bitbucket repository in OTA stack?
Do I need to modify the existing Library , or the same library that is used for Github and Dropbox will work for Bitbucket also after modifying the required parameters and URL.
Sorry, the flag name was changed and is now: OTA_FILE_DOWNLOAD (it is one of the options for OTA_SERVER_TYPE).
It is in defined in otauser.h and impact both the librayr and the cloudOTA app (basically it is used to provide the url to the library by an OTA_set command and then it will skip the CdnClient negotiation).
Look for all the instances the flag is used (in the app and lib) and you will be able to update your implementation (but it will be better to update the SDK or at least the OTA library).
br,
Kobi