le_avc_interface.h
Go to the documentation of this file.
65 * If an uninstall is pending, then le_avc_AcceptUninstall() can be used to allow the uninstall to106 * according to the polling timer. The device initates the connection periodically, so that it can107 * poll the server if there are any pending jobs. Writing 0 to the polling timer disables polling108 * mode. Polling timer values range from 0 to 525600 minutes. The polling timer value is persistent.109 * le_avc_GetPollingTimer() reads the polling timer and le_avc_SetPollingTimer() writes the polling115 * failed, http error code received), the embedded module will initiate a new connection according116 * to the values defined in the retry timers. The timers are tried in sequence until a connection is118 * exhausted, a connection will be initiated only on a command from user (le_avc_startSession() )122 * le_avc_SetRetryTimers() writes the polling timers. When writing to the retry timers, values of144 * After an AirVantage session is started, if there's no activity from the modem within the timer interval,145 * then LE_AVC_NO_UPDATE state will be returned to the app. However, this modem activity timeout can148 * then it will be used instead of the default value of 20 seconds. The following steps should be181 //--------------------------------------------------------------------------------------------------184 * Connect the current client thread to the service providing this API. Block until the service is187 * For each thread that wants to use this API, either ConnectService or TryConnectService must be188 * called before any other functions in this API. Normally, ConnectService is automatically called193 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------202 * Try to connect the current client thread to the service providing this API. Return with an error205 * For each thread that wants to use this API, either ConnectService or TryConnectService must be206 * called before any other functions in this API. Normally, ConnectService is automatically called213 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.214 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).217 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------229 * longer a connection to the service, and the functions in this API can't be used. For details, see234 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------249 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------377 //--------------------------------------------------------------------------------------------------385 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------408 //--------------------------------------------------------------------------------------------------423 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------431 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------439 //--------------------------------------------------------------------------------------------------457 //--------------------------------------------------------------------------------------------------459 (466 //--------------------------------------------------------------------------------------------------472 //--------------------------------------------------------------------------------------------------482 //--------------------------------------------------------------------------------------------------486 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------504 //--------------------------------------------------------------------------------------------------510 //--------------------------------------------------------------------------------------------------520 //--------------------------------------------------------------------------------------------------526 //--------------------------------------------------------------------------------------------------534 //--------------------------------------------------------------------------------------------------540 //--------------------------------------------------------------------------------------------------548 //--------------------------------------------------------------------------------------------------555 //--------------------------------------------------------------------------------------------------563 //--------------------------------------------------------------------------------------------------569 //--------------------------------------------------------------------------------------------------577 //--------------------------------------------------------------------------------------------------584 //--------------------------------------------------------------------------------------------------592 //--------------------------------------------------------------------------------------------------598 //--------------------------------------------------------------------------------------------------606 //--------------------------------------------------------------------------------------------------613 //--------------------------------------------------------------------------------------------------621 //--------------------------------------------------------------------------------------------------628 //--------------------------------------------------------------------------------------------------636 //--------------------------------------------------------------------------------------------------646 //--------------------------------------------------------------------------------------------------654 //--------------------------------------------------------------------------------------------------660 //--------------------------------------------------------------------------------------------------664 //--------------------------------------------------------------------------------------------------671 //--------------------------------------------------------------------------------------------------679 //--------------------------------------------------------------------------------------------------685 //--------------------------------------------------------------------------------------------------693 //--------------------------------------------------------------------------------------------------699 //--------------------------------------------------------------------------------------------------706 //--------------------------------------------------------------------------------------------------712 //--------------------------------------------------------------------------------------------------720 //--------------------------------------------------------------------------------------------------727 //--------------------------------------------------------------------------------------------------735 //--------------------------------------------------------------------------------------------------745 //--------------------------------------------------------------------------------------------------754 //--------------------------------------------------------------------------------------------------776 //--------------------------------------------------------------------------------------------------785 //--------------------------------------------------------------------------------------------------798 //--------------------------------------------------------------------------------------------------806 //--------------------------------------------------------------------------------------------------813 //--------------------------------------------------------------------------------------------------821 //--------------------------------------------------------------------------------------------------le_result_t le_avc_GetPollingTimer(uint32_t *pollingTimerPtr)le_result_t le_avc_SetApnConfig(const char *apnName, const char *userName, const char *userPwd)le_result_t le_avc_GetRetryTimers(uint16_t *timerValuePtr, size_t *timerValueNumElementsPtr)void le_avc_RemoveStatusEventHandler(le_avc_StatusEventHandlerRef_t addHandlerRef)An error occurred uninstalling the update.Definition: le_avc_interface.h:350void le_avc_UnblockInstall(le_avc_BlockRequestRef_t blockRef)le_avc_StatusEventHandlerRef_t le_avc_AddStatusEventHandler(le_avc_StatusHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_avc_DeferUninstall(uint32_t deferMinutes)Install is pending (implies download complete)Definition: le_avc_interface.h:329le_result_t le_avc_AcceptUninstall(void)le_result_t le_avc_GetUpdateType(le_avc_UpdateType_t *updateTypePtr)le_result_t le_avc_StartSession(void)le_result_t le_avc_StopSession(void)le_result_t le_avc_SetRetryTimers(const uint16_t *timerValuePtr, size_t timerValueNumElements)le_result_t le_avc_AcceptDownload(void)le_result_t le_avc_TryConnectService(void)le_result_t le_avc_DeferInstall(uint32_t deferMinutes)le_result_t le_avc_AcceptInstall(void)Something failed while doing install/download.Definition: le_avc_interface.h:394struct le_avc_BlockRequest * le_avc_BlockRequestRef_tDefinition: le_avc_interface.h:436le_avc_BlockRequestRef_t le_avc_BlockInstall(void)void le_avc_DisconnectService(void)le_avc_SessionType_t le_avc_GetSessionType(void)le_result_t le_avc_DeferDownload(uint32_t deferMinutes)le_result_t le_avc_SetPollingTimer(uint32_t pollingTimer)Security check failure while installing the package.Definition: le_avc_interface.h:397void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t dloadProgress, void *contextPtr)Definition: le_avc_interface.h:459uint16_t le_avc_GetHttpStatus(void)struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_tDefinition: le_avc_interface.h:428le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameNumElements)le_avc_ErrorCode_t le_avc_GetErrorCode(void)le_result_t le_avc_GetApnConfig(char *apnName, size_t apnNameNumElements, char *userName, size_t userNameNumElements, char *userPwd, size_t userPwdNumElements)void le_avc_ConnectService(void)