le_avc_interface.h
Go to the documentation of this file.
37 * The current session can be stopped using le_avc_StopSession(). This cancels any query for pending38 * update, or suspends a download in progress; however, it <b>won't stop</b> an install in progress.61 * @c avcService will open a session to proceed with the download. In this case, a session started67 * le_avc_GetUpdateType(). App updates can call le_avc_GetAppUpdateName() to retrieve the App name.78 * If an uninstall is pending, then le_avc_AcceptUninstall() can be used to allow the uninstall to82 * signal the server to start downloading the new application. To proceed with an upgrade process,132 * another App using the @ref c_le_avc_update_app functions. To defer the decision, an App can use133 * le_avc_DeferInstall() to defer the install for the specified number of minutes. After the defer134 * time has elapsed, the pending install notification will be re-sent to allow Apps to make a new141 * is active. An App should start an AirVantage session before accepting an App install/uninstall,145 * then any pending downloads and installs will happen automatically, subject to any restrictions150 * In case of any error incurred during App download/install, an error code will be set which can be167 * An App can add a session control handler using le_avc_AddSessionRequestEventHandler(). Requests168 * by user Apps to open or close session will be forwarded to the session control handler. If no App174 * Poling timers sets the time that the Target will communicate with the AirVantage Server to check185 * The polling timer accepts ranges from 0 to 525600 minutes and is persistent across reboots and198 * The timers are tried in sequence until a connection is established, or all enabled retry timers199 * are exhausted. After all the enabled timers are exhausted, a new session must be initiated again211 * Example of calling retry timers, the session will be retried after 15 minutes, 1 hour, 4 hours,220 * The AirVantage server can request to reboot the device. If a reboot is requested a notification221 * is sent to the registered Apps. The App can either accept the reboot with le_avc_AcceptReboot()223 * has elapsed, the pending reboot notification will be re-sent. This allows the registered app to237 * firmware package is installed (after a platform reboot). In this case a notification is sent to242 * By default the AirVantage connection uses the default mobile data profile and the default route245 * If the user wishes to control the network configuration, e.g. to use the AirVantage agent with254 * The data connection service should then be configured before launching the AirVantage connection:280 * After an AirVantage session is started, if there's no activity between the device and the server283 * /apps/avcService/activityTimeout. The activity timer is initialized only when the @c avcService317 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------327 * Connect the current client thread to the service providing this API. Block until the service is330 * For each thread that wants to use this API, either ConnectService or TryConnectService must be331 * called before any other functions in this API. Normally, ConnectService is automatically called336 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------345 * Try to connect the current client thread to the service providing this API. Return with an error348 * For each thread that wants to use this API, either ConnectService or TryConnectService must be349 * called before any other functions in this API. Normally, ConnectService is automatically called358 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).361 //--------------------------------------------------------------------------------------------------367 //--------------------------------------------------------------------------------------------------371 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants374 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------387 * longer a connection to the service, and the functions in this API can't be used. For details, see392 //--------------------------------------------------------------------------------------------------399 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------406 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------413 //--------------------------------------------------------------------------------------------------417 //--------------------------------------------------------------------------------------------------420 //--------------------------------------------------------------------------------------------------424 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------431 //--------------------------------------------------------------------------------------------------434 //--------------------------------------------------------------------------------------------------438 //--------------------------------------------------------------------------------------------------441 //--------------------------------------------------------------------------------------------------445 //--------------------------------------------------------------------------------------------------448 //--------------------------------------------------------------------------------------------------452 //--------------------------------------------------------------------------------------------------455 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------461 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------471 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------478 //--------------------------------------------------------------------------------------------------481 //--------------------------------------------------------------------------------------------------487 //--------------------------------------------------------------------------------------------------532 //--------------------------------------------------------------------------------------------------536 //--------------------------------------------------------------------------------------------------547 //--------------------------------------------------------------------------------------------------551 //--------------------------------------------------------------------------------------------------566 //--------------------------------------------------------------------------------------------------574 //--------------------------------------------------------------------------------------------------589 //--------------------------------------------------------------------------------------------------594 //--------------------------------------------------------------------------------------------------607 //--------------------------------------------------------------------------------------------------611 //--------------------------------------------------------------------------------------------------626 //--------------------------------------------------------------------------------------------------630 //--------------------------------------------------------------------------------------------------634 //--------------------------------------------------------------------------------------------------638 //--------------------------------------------------------------------------------------------------642 //--------------------------------------------------------------------------------------------------646 //--------------------------------------------------------------------------------------------------650 //--------------------------------------------------------------------------------------------------654 //--------------------------------------------------------------------------------------------------656 (673 //--------------------------------------------------------------------------------------------------677 //--------------------------------------------------------------------------------------------------679 (686 //--------------------------------------------------------------------------------------------------692 //--------------------------------------------------------------------------------------------------701 //--------------------------------------------------------------------------------------------------705 //--------------------------------------------------------------------------------------------------712 //--------------------------------------------------------------------------------------------------718 //--------------------------------------------------------------------------------------------------727 //--------------------------------------------------------------------------------------------------731 //--------------------------------------------------------------------------------------------------738 //--------------------------------------------------------------------------------------------------751 //--------------------------------------------------------------------------------------------------757 //--------------------------------------------------------------------------------------------------767 //--------------------------------------------------------------------------------------------------773 //--------------------------------------------------------------------------------------------------775 * Send a specific message to the server to be sure that the route between the device and the server777 * This API needs to be called when any package download is over (successfully or not) and before786 //--------------------------------------------------------------------------------------------------792 //--------------------------------------------------------------------------------------------------800 //--------------------------------------------------------------------------------------------------806 //--------------------------------------------------------------------------------------------------814 //--------------------------------------------------------------------------------------------------821 //--------------------------------------------------------------------------------------------------829 //--------------------------------------------------------------------------------------------------835 //--------------------------------------------------------------------------------------------------843 //--------------------------------------------------------------------------------------------------850 //--------------------------------------------------------------------------------------------------858 //--------------------------------------------------------------------------------------------------864 //--------------------------------------------------------------------------------------------------872 //--------------------------------------------------------------------------------------------------879 //--------------------------------------------------------------------------------------------------887 //--------------------------------------------------------------------------------------------------893 //--------------------------------------------------------------------------------------------------901 //--------------------------------------------------------------------------------------------------908 //--------------------------------------------------------------------------------------------------916 //--------------------------------------------------------------------------------------------------923 //--------------------------------------------------------------------------------------------------931 //--------------------------------------------------------------------------------------------------940 //--------------------------------------------------------------------------------------------------948 //--------------------------------------------------------------------------------------------------954 //--------------------------------------------------------------------------------------------------958 //--------------------------------------------------------------------------------------------------965 //--------------------------------------------------------------------------------------------------973 //--------------------------------------------------------------------------------------------------979 //--------------------------------------------------------------------------------------------------987 //--------------------------------------------------------------------------------------------------993 //--------------------------------------------------------------------------------------------------1000 //--------------------------------------------------------------------------------------------------1006 //--------------------------------------------------------------------------------------------------1015 //--------------------------------------------------------------------------------------------------1022 //--------------------------------------------------------------------------------------------------1031 //--------------------------------------------------------------------------------------------------1040 //--------------------------------------------------------------------------------------------------1049 //--------------------------------------------------------------------------------------------------1066 //--------------------------------------------------------------------------------------------------1074 //--------------------------------------------------------------------------------------------------1085 //--------------------------------------------------------------------------------------------------1093 //--------------------------------------------------------------------------------------------------1100 //--------------------------------------------------------------------------------------------------1109 //--------------------------------------------------------------------------------------------------1118 //--------------------------------------------------------------------------------------------------1131 //--------------------------------------------------------------------------------------------------void le_avc_RemoveSessionRequestEventHandler(le_avc_SessionRequestEventHandlerRef_t handlerRef)le_result_t le_avc_GetPollingTimer(uint32_t *pollingTimerPtr)void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t dloadProgress, void *contextPtr)Definition: le_avc_interface.h:656le_result_t le_avc_DeferReboot(uint32_t deferMinutes)le_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)le_result_t le_avc_SetApnConfig(const char *LE_NONNULL apnName, const char *LE_NONNULL userName, const char *LE_NONNULL userPwd)void(* le_avc_SessionRequestHandlerFunc_t)(le_avc_SessionRequest_t request, void *contextPtr)Definition: le_avc_interface.h:679le_result_t le_avc_AcceptReboot(void)An error occurred uninstalling the update.Definition: le_avc_interface.h:514void 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:639le_result_t le_avc_DeferUninstall(uint32_t deferMinutes)Install is pending (implies download complete)Definition: le_avc_interface.h:500le_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:322Definition: le_avc_interface.h:614le_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:581struct le_avc_BlockRequest * le_avc_BlockRequestRef_tDefinition: le_avc_interface.h:647le_avc_BlockRequestRef_t le_avc_BlockInstall(void)void le_avc_DisconnectService(void)le_avc_SessionType_t le_avc_GetSessionType(void)Definition: le_avc_interface.h:617le_result_t le_avc_GetApnConfig(char *apnName, size_t apnNameSize, char *userName, size_t userNameSize, char *userPwd, size_t userPwdSize)le_avc_CredentialStatus_t le_avc_GetCredentialStatus(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:583le_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:631Device Management credential is provisioned.Definition: le_avc_interface.h:620le_avc_ErrorCode_t le_avc_GetErrorCode(void)void le_avc_ConnectService(void)