le_cellnet_interface.h
Go to the documentation of this file.
25 * If all of the above conditions are met, then the service indicates that the network is available.41 * The Cellular Network can be requested using le_cellnet_Request(). This function will turn on the42 * radio if it is switched off and it will unlock the SIM if a PIN code is required (the necessary67 * Setting the SIM PIN code in the secure storage and retrieving it is performed by two functions:70 * The le_cellnet_SetSimPinCode() function stores the PIN code in the secure storage and takes two76 * The le_cellnet_GetSimPinCode() function retrieves the SIM card PIN code from the secure storage79 * @note The action carried out by the Cellular Network Service when a new SIM is inserted depends107 //--------------------------------------------------------------------------------------------------111 //--------------------------------------------------------------------------------------------------114 //--------------------------------------------------------------------------------------------------117 * Connect the current client thread to the service providing this API. Block until the service is120 * For each thread that wants to use this API, either ConnectService or TryConnectService must be121 * called before any other functions in this API. Normally, ConnectService is automatically called126 //--------------------------------------------------------------------------------------------------132 //--------------------------------------------------------------------------------------------------135 * Try to connect the current client thread to the service providing this API. Return with an error138 * For each thread that wants to use this API, either ConnectService or TryConnectService must be139 * called before any other functions in this API. Normally, ConnectService is automatically called148 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).151 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------161 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants164 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------177 * longer a connection to the service, and the functions in this API can't be used. For details, see182 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------224 //--------------------------------------------------------------------------------------------------233 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------244 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------316 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------le_result_t le_cellnet_TryConnectService(void)void le_cellnet_DisconnectService(void)void le_cellnet_Release(le_cellnet_RequestObjRef_t cellNetRef)le_cellnet_StateEventHandlerRef_t le_cellnet_AddStateEventHandler(le_cellnet_StateHandlerFunc_t handlerPtr, void *contextPtr)le_cellnet_RequestObjRef_t le_cellnet_Request(void)void le_cellnet_ConnectService(void)void(* le_cellnet_DisconnectHandler_t)(void *)Definition: le_cellnet_interface.h:112LE_FULL_API void le_cellnet_SetServerDisconnectHandler(le_cellnet_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_cellnet_RemoveStateEventHandler(le_cellnet_StateEventHandlerRef_t handlerRef)le_result_t le_cellnet_GetNetworkState(le_cellnet_State_t *statePtr)le_result_t le_cellnet_SetSimPinCode(le_sim_Id_t simId, const char *LE_NONNULL pinCode)le_result_t le_cellnet_GetSimPinCode(le_sim_Id_t simId, char *pinCode, size_t pinCodeSize)