le_avc_interface.h
Go to the documentation of this file.
67 * If an uninstall is pending, then le_avc_AcceptUninstall() can be used to allow the uninstall to105 * The control app can add a session controller handler using le_avc_AddSessionRequestEventHandler().106 * If the control app registers a session request event handler, requests by user apps to open or107 * close session will be forwarded to the control app. If the control app doesn't register a session113 * according to the polling timer. The device initates the connection periodically, so that it can114 * poll the server if there are any pending jobs. Writing 0 to the polling timer disables polling115 * mode. Polling timer values range from 0 to 525600 minutes. The polling timer value is persistent.116 * le_avc_GetPollingTimer() reads the polling timer and le_avc_SetPollingTimer() writes the polling123 * failed, http error code received), the embedded module will initiate a new connection according124 * to the values defined in the retry timers. The timers are tried in sequence until a connection is126 * exhausted, a connection will be initiated only on a command from user (le_avc_startSession() )130 * le_avc_SetRetryTimers() writes the polling timers. When writing to the retry timers, values of152 * After an AirVantage session is started, if there's no activity from the modem within the timer interval,153 * then LE_AVC_NO_UPDATE state will be returned to the app. However, this modem activity timeout can156 * then it will be used instead of the default value of 20 seconds. The following steps should be189 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------199 * Connect the current client thread to the service providing this API. Block until the service is202 * For each thread that wants to use this API, either ConnectService or TryConnectService must be203 * called before any other functions in this API. Normally, ConnectService is automatically called208 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------217 * Try to connect the current client thread to the service providing this API. Return with an error220 * For each thread that wants to use this API, either ConnectService or TryConnectService must be221 * called before any other functions in this API. Normally, ConnectService is automatically called230 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).233 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------243 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants246 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------259 * longer a connection to the service, and the functions in this API can't be used. For details, see264 //--------------------------------------------------------------------------------------------------271 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------292 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------320 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------333 //--------------------------------------------------------------------------------------------------370 //--------------------------------------------------------------------------------------------------374 //--------------------------------------------------------------------------------------------------385 //--------------------------------------------------------------------------------------------------389 //--------------------------------------------------------------------------------------------------404 //--------------------------------------------------------------------------------------------------412 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------445 //--------------------------------------------------------------------------------------------------449 //--------------------------------------------------------------------------------------------------453 //--------------------------------------------------------------------------------------------------457 //--------------------------------------------------------------------------------------------------461 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------469 //--------------------------------------------------------------------------------------------------473 //--------------------------------------------------------------------------------------------------475 (492 //--------------------------------------------------------------------------------------------------496 //--------------------------------------------------------------------------------------------------498 (505 //--------------------------------------------------------------------------------------------------511 //--------------------------------------------------------------------------------------------------520 //--------------------------------------------------------------------------------------------------524 //--------------------------------------------------------------------------------------------------531 //--------------------------------------------------------------------------------------------------537 //--------------------------------------------------------------------------------------------------546 //--------------------------------------------------------------------------------------------------550 //--------------------------------------------------------------------------------------------------557 //--------------------------------------------------------------------------------------------------568 //--------------------------------------------------------------------------------------------------574 //--------------------------------------------------------------------------------------------------584 //--------------------------------------------------------------------------------------------------590 //--------------------------------------------------------------------------------------------------592 * Send a specific message to the server to be sure that the route between the device and the server594 * This API needs to be called when any package download is over (successfully or not) and before603 //--------------------------------------------------------------------------------------------------609 //--------------------------------------------------------------------------------------------------617 //--------------------------------------------------------------------------------------------------623 //--------------------------------------------------------------------------------------------------631 //--------------------------------------------------------------------------------------------------638 //--------------------------------------------------------------------------------------------------646 //--------------------------------------------------------------------------------------------------652 //--------------------------------------------------------------------------------------------------660 //--------------------------------------------------------------------------------------------------667 //--------------------------------------------------------------------------------------------------675 //--------------------------------------------------------------------------------------------------681 //--------------------------------------------------------------------------------------------------689 //--------------------------------------------------------------------------------------------------696 //--------------------------------------------------------------------------------------------------704 //--------------------------------------------------------------------------------------------------711 //--------------------------------------------------------------------------------------------------719 //--------------------------------------------------------------------------------------------------728 //--------------------------------------------------------------------------------------------------736 //--------------------------------------------------------------------------------------------------742 //--------------------------------------------------------------------------------------------------746 //--------------------------------------------------------------------------------------------------753 //--------------------------------------------------------------------------------------------------761 //--------------------------------------------------------------------------------------------------767 //--------------------------------------------------------------------------------------------------775 //--------------------------------------------------------------------------------------------------781 //--------------------------------------------------------------------------------------------------788 //--------------------------------------------------------------------------------------------------794 //--------------------------------------------------------------------------------------------------802 //--------------------------------------------------------------------------------------------------809 //--------------------------------------------------------------------------------------------------817 * @deprecated This API should not be used for new applications and will be removed in the future819 //--------------------------------------------------------------------------------------------------828 //--------------------------------------------------------------------------------------------------837 //--------------------------------------------------------------------------------------------------854 //--------------------------------------------------------------------------------------------------862 //--------------------------------------------------------------------------------------------------874 //--------------------------------------------------------------------------------------------------881 //--------------------------------------------------------------------------------------------------888 //--------------------------------------------------------------------------------------------------896 * @deprecated This API should not be used for new applications and will be removed in the future898 //--------------------------------------------------------------------------------------------------void le_avc_RemoveSessionRequestEventHandler(le_avc_SessionRequestEventHandlerRef_t handlerRef)le_result_t le_avc_GetPollingTimer(uint32_t *pollingTimerPtr)le_result_t le_avc_SetApnConfig(const char *apnName, const char *userName, const char *userPwd)void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t dloadProgress, void *contextPtr)Definition: le_avc_interface.h:475le_result_t le_avc_SetRetryTimers(const uint16_t *timerValuePtr, size_t timerValueSize)le_avc_SessionRequestEventHandlerRef_t le_avc_AddSessionRequestEventHandler(le_avc_SessionRequestHandlerFunc_t handlerPtr, void *contextPtr)void(* le_avc_SessionRequestHandlerFunc_t)(le_avc_SessionRequest_t request, void *contextPtr)Definition: le_avc_interface.h:498An error occurred uninstalling the update.Definition: le_avc_interface.h:360void le_avc_UnblockInstall(le_avc_BlockRequestRef_t blockRef)void le_avc_SetServerDisconnectHandler(le_avc_DisconnectHandler_t disconnectHandler, void *contextPtr)le_avc_StatusEventHandlerRef_t le_avc_AddStatusEventHandler(le_avc_StatusHandlerFunc_t handlerPtr, void *contextPtr)struct le_avc_SessionRequestEventHandler * le_avc_SessionRequestEventHandlerRef_tDefinition: le_avc_interface.h:458le_result_t le_avc_DeferUninstall(uint32_t deferMinutes)Install is pending (implies download complete)Definition: le_avc_interface.h:346le_result_t le_avc_AcceptUninstall(void)le_result_t le_avc_GetUpdateType(le_avc_UpdateType_t *updateTypePtr)void(* le_avc_DisconnectHandler_t)(void *)Definition: le_avc_interface.h:194le_result_t le_avc_StartSession(void)le_result_t le_avc_StopSession(void)void le_avc_RemoveStatusEventHandler(le_avc_StatusEventHandlerRef_t handlerRef)le_result_t le_avc_AcceptDownload(void)le_result_t le_avc_TryConnectService(void)le_result_t le_avc_CheckRoute(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:419struct le_avc_BlockRequest * le_avc_BlockRequestRef_tDefinition: le_avc_interface.h:466le_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_GetApnConfig(char *apnName, size_t apnNameSize, char *userName, size_t userNameSize, char *userPwd, size_t userPwdSize)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:421le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameSize)le_result_t le_avc_GetRetryTimers(uint16_t *timerValuePtr, size_t *timerValueSizePtr)uint16_t le_avc_GetHttpStatus(void)struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_tDefinition: le_avc_interface.h:450le_avc_ErrorCode_t le_avc_GetErrorCode(void)void le_avc_ConnectService(void)