The documentation in the CC3200 Simplelink OTA Extlib API User's Guide.chm help file and even the ota_api.h file itself shows the following possible values for pOptionVal:
EXTLIB_OTA_SET_OPT_SERVER_INFO - Set the Server information \n
EXTLIB_OTA_SET_OPT_VENDOR_ID - Set the Vendor ID string \n
EXTLIB_OTA_SET_OPT_COMMITED - Commit the last OTA update & move to idle \n
But the code (in the same header file) lists the following values:
typedef enum
{
EXTLIB_OTA_SET_OPT_SERVER_INFO = 0, /* see OtaOptServerInfo_t */
EXTLIB_OTA_SET_OPT_VENDOR_ID,
EXTLIB_OTA_SET_OPT_IMAGE_TEST,
EXTLIB_OTA_SET_OPT_IMAGE_COMMIT
} OtaSetOpt_e;
The example code uses the EXTLIB_OTA_SET_OPT_IMAGE_TEST value. I assume it was originally just 'commited' which tested and committed the new binary, and then it was split into two operations. However the example only uses the 'test' option without a second 'commit' instruction, and it definitely commits the binary. So can someone confirm that EXTLIB_OTA_SET_OPT_IMAGE_TEST does both 'test' and 'commit' operations? What is the purpose of the 'commit' operation then? Or is the documentation correct, and there is no fourth option, only the test and commit option called EXTLIB_OTA_SET_OPT_COMMITED = 2.
Also, can anyone confirm that there is a limit to the vendor ID string? It seems if I use anything longer than 19 characters the OTA library hangs.