le_data_interface.h
Go to the documentation of this file.
23 * The data connection service provides a basic API for requesting and releasing a data connection.29 * All the functions of this API are provided by the @b dataConnectionService application service.70 * @note When using the cellular technology, the data connection service can use a specific cellular73 * retrieved by le_data_GetCellularProfileIndex(). The profile to use is loaded when the first data90 * @note The default route activation status can be retrieved with le_data_GetDefaultRouteStatus().95 * A sample code showing how to set the modem default route if it isn't set by the data connection97 * @snippet "apps/test/dataConnectionService/dataConnectionServiceRouteTest/dcsRouteTestComp/dcsRouteTest.c" DefaultRoute116 * one in the list is used for the default data connection. If the connection is also unavailable131 * and @c r+n+1. Technologies with ranks under @c r are not impacted. If the technology is already148 * stored in the configuration database of the @c dataConnectionService under the following path:187 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------197 * Connect the current client thread to the service providing this API. Block until the service is200 * For each thread that wants to use this API, either ConnectService or TryConnectService must be201 * called before any other functions in this API. Normally, ConnectService is automatically called206 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------215 * Try to connect the current client thread to the service providing this API. Return with an error218 * For each thread that wants to use this API, either ConnectService or TryConnectService must be219 * called before any other functions in this API. Normally, ConnectService is automatically called228 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).231 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------241 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants244 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------257 * longer a connection to the service, and the functions in this API can't be used. For details, see262 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------316 //--------------------------------------------------------------------------------------------------320 //--------------------------------------------------------------------------------------------------322 (331 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------365 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------391 //--------------------------------------------------------------------------------------------------400 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------413 //--------------------------------------------------------------------------------------------------420 //--------------------------------------------------------------------------------------------------426 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------442 //--------------------------------------------------------------------------------------------------450 //--------------------------------------------------------------------------------------------------456 //--------------------------------------------------------------------------------------------------471 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------481 * Delete a route on the data connection service interface, if the data session is connected using494 //--------------------------------------------------------------------------------------------------502 //--------------------------------------------------------------------------------------------------504 * Get the cellular profile index used by the data connection service when the cellular technology510 //--------------------------------------------------------------------------------------------------516 //--------------------------------------------------------------------------------------------------518 * Set the cellular profile index used by the data connection service when the cellular technology526 //--------------------------------------------------------------------------------------------------void le_data_ConnectService(void)void(* le_data_ConnectionStateHandlerFunc_t)(const char *LE_NONNULL intfName, bool isConnected, void *contextPtr)Definition: le_data_interface.h:322void le_data_Release(le_data_RequestObjRef_t requestRef)le_data_RequestObjRef_t le_data_Request(void)struct le_data_RequestObj * le_data_RequestObjRef_tDefinition: le_data_interface.h:288void le_data_RemoveConnectionStateHandler(le_data_ConnectionStateHandlerRef_t handlerRef)le_result_t le_data_SetTechnologyRank(uint32_t rank, le_data_Technology_t technology)le_data_Technology_t le_data_GetNextUsedTechnology(void)le_result_t le_data_AddRoute(const char *LE_NONNULL ipDestAddrStr)int32_t le_data_GetCellularProfileIndex(void)le_result_t le_data_TryConnectService(void)void le_data_DisconnectService(void)le_result_t le_data_SetCellularProfileIndex(int32_t profileIndex)void le_data_SetServerDisconnectHandler(le_data_DisconnectHandler_t disconnectHandler, void *contextPtr)le_data_Technology_t le_data_GetTechnology(void)le_result_t le_data_DelRoute(const char *LE_NONNULL ipDestAddrStr)void(* le_data_DisconnectHandler_t)(void *)Definition: le_data_interface.h:192struct le_data_ConnectionStateHandler * le_data_ConnectionStateHandlerRef_tDefinition: le_data_interface.h:313bool le_data_GetDefaultRouteStatus(void)le_data_Technology_t le_data_GetFirstUsedTechnology(void)le_data_ConnectionStateHandlerRef_t le_data_AddConnectionStateHandler(le_data_ConnectionStateHandlerFunc_t handlerPtr, void *contextPtr)