le_data_interface.h
Go to the documentation of this file.
21 * The data connection service provides a basic API for requesting and releasing a data connection.25 * All the functions of this API are provided by the @b dataConnectionService application service.77 * 'prefTech' is the preferred technology used for the data connection service. It can be set with101 * connection (e.g., use a least cost data link or disable roaming on mobile networks). You can do this129 //--------------------------------------------------------------------------------------------------132 * Connect the current client thread to the service providing this API. Block until the service is135 * For each thread that wants to use this API, either ConnectService or TryConnectService must be136 * called before any other functions in this API. Normally, ConnectService is automatically called141 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------150 * Try to connect the current client thread to the service providing this API. Return with an error153 * For each thread that wants to use this API, either ConnectService or TryConnectService must be154 * called before any other functions in this API. Normally, ConnectService is automatically called161 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.162 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).165 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------177 * longer a connection to the service, and the functions in this API can't be used. For details, see182 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------217 (223 //--------------------------------------------------------------------------------------------------229 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------void le_data_ConnectService(void)void le_data_Release(le_data_RequestObjRef_t requestRef)void le_data_RemoveConnectionStateHandler(le_data_ConnectionStateHandlerRef_t addHandlerRef)le_data_RequestObjRef_t le_data_Request(void)struct le_data_RequestObj * le_data_RequestObjRef_tDefinition: le_data_interface.h:194void(* le_data_ConnectionStateHandlerFunc_t)(const char *intfName, bool isConnected, void *contextPtr)Definition: le_data_interface.h:217le_result_t le_data_TryConnectService(void)void le_data_DisconnectService(void)struct le_data_ConnectionStateHandler * le_data_ConnectionStateHandlerRef_tDefinition: le_data_interface.h:202le_data_ConnectionStateHandlerRef_t le_data_AddConnectionStateHandler(le_data_ConnectionStateHandlerFunc_t handlerPtr, void *contextPtr)