le_cellnet_interface.h
Go to the documentation of this file.
23 * If all of the above conditions are met, then the service indicates that the network is available.39 * The Cellular Network can be requested using le_cellnet_Request(). This function will turn on the40 * radio if it is switched off and it will unlock the SIM if a PIN code is required (the necessary65 * Setting the SIM PIN code in the secure storage and retrieving it is performed by two functions:68 * The le_cellnet_SetSimPinCode() function stores the PIN code in the secure storage and takes two74 * The le_cellnet_GetSimPinCode() function retrieves the SIM card PIN code from the secure storage77 * @note The action carried out by the Cellular Network Service when a new SIM is inserted depends104 //--------------------------------------------------------------------------------------------------107 * Connect the current client thread to the service providing this API. Block until the service is110 * For each thread that wants to use this API, either ConnectService or TryConnectService must be111 * called before any other functions in this API. Normally, ConnectService is automatically called116 //--------------------------------------------------------------------------------------------------122 //--------------------------------------------------------------------------------------------------125 * Try to connect the current client thread to the service providing this API. Return with an error128 * For each thread that wants to use this API, either ConnectService or TryConnectService must be129 * called before any other functions in this API. Normally, ConnectService is automatically called136 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.137 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).140 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------152 * longer a connection to the service, and the functions in this API can't be used. For details, see157 //--------------------------------------------------------------------------------------------------164 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------209 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------219 (224 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------244 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------void(* le_cellnet_StateHandlerFunc_t)(le_cellnet_State_t state, void *contextPtr)Definition: le_cellnet_interface.h:219le_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)struct le_cellnet_StateEventHandler * le_cellnet_StateEventHandlerRef_tDefinition: le_cellnet_interface.h:206struct le_cellnet_RequestObj * le_cellnet_RequestObjRef_tDefinition: le_cellnet_interface.h:169void le_cellnet_RemoveStateEventHandler(le_cellnet_StateEventHandlerRef_t addHandlerRef)le_result_t le_cellnet_GetSimPinCode(le_sim_Id_t simId, char *pinCode, size_t pinCodeNumElements)le_result_t le_cellnet_GetNetworkState(le_cellnet_State_t *statePtr)le_result_t le_cellnet_SetSimPinCode(le_sim_Id_t simId, const char *pinCode)