I'm having trouble determining why the cloud-ota example fails for me.
I have downloaded the der file for digicerthighassuranceevrootca.cer from the digi_cert site and renamed it to .der
I have flashed the Launchpad with the certificate structure:
I already had a dropbox app set up, I used the Folder Name from before "VizcoUpdates" and I regenerated the access token and used that.
#elif OTA_SERVER_TYPE == OTA_SERVER_DROPBOX_V2
/* Dropbox V2 server info */
#define OTA_SERVER_NAME "api.dropboxapi.com"
#define OTA_SERVER_IP_ADDRESS 0x00000000
#define OTA_SERVER_SECURED 1
/* Dropbox V2 vendor info */
#define OTA_VENDOR_TOKEN "QJAlx8FQgXAAAAAAAAAAIcFVqgwjz-123456789-ECBpPqSRhEGSOdJuh613Cs4pN" (NOTE slightly modified to keep it a secret)
#ifndef OTA_VENDOR_TOKEN
#error "Please define your personal cloud account token in OTA_VENDOR_TOKEN above"
#endif
#define OTA_SERVER_ROOT_CA_CERT "digicerthighassuranceevrootca.der"
#define OTA_SERVER_AUTH_IGNORE_DATA_TIME_ERROR
#define OTA_SERVER_AUTH_DISABLE_CERT_STORE
However, when I debug the application, It fails at the point where it tries to list the folder contents.
What might I have missed??
HandlePingComplete: PingCounter=2
Pinging GW...!
Ping done. Success rate: 100%
HandlePingComplete: OTA Command arrived
OtaInit: statistics = 0, 0, 0
OtaInit: call Ota_init
OTA_init: sizeof CdnClient=576, sizeof OtaArchive=4956
OTA_init: sizeof OtaLib_t=7736, sizeof OTA_memBlock=7800
OTA_init: OTA lib version = OTA_LIB_2.0.0.7
OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4
OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_SERVER_INFO, ServerName=api.dropboxapi.com
OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_VENDOR_ID, VendorDir=VizcoUpdates
OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
HttpClient_Connect: IP_ADDR=162.125.5.7
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
OTA_run: CdnClient_ReqOtaDir, VendorDir=VizcoUpdates
CdnDropbox_SendReqDir: uri=/2/files/list_folder
HttpClient_RecvSkipHdr: http error code HTTP/1.1 409
CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310
Thanks,
Chuck
