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 depends111 //--------------------------------------------------------------------------------------------------115 //--------------------------------------------------------------------------------------------------118 //--------------------------------------------------------------------------------------------------121 * Connect the current client thread to the service providing this API. Block until the service is124 * For each thread that wants to use this API, either ConnectService or TryConnectService must be125 * called before any other functions in this API. Normally, ConnectService is automatically called130 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------139 * Try to connect the current client thread to the service providing this API. Return with an error142 * For each thread that wants to use this API, either ConnectService or TryConnectService must be143 * called before any other functions in this API. Normally, ConnectService is automatically called152 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).155 //--------------------------------------------------------------------------------------------------161 //--------------------------------------------------------------------------------------------------165 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants168 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------181 * longer a connection to the service, and the functions in this API can't be used. For details, see186 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------248 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------266 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------288 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------320 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------struct le_cellnet_RequestObj * le_cellnet_RequestObjRef_tDefinition: le_cellnet_common.h:36struct le_cellnet_StateEventHandler * le_cellnet_StateEventHandlerRef_tDefinition: le_cellnet_common.h:68le_cellnet_RequestObjRef_t le_cellnet_Request(void)le_cellnet_StateEventHandlerRef_t le_cellnet_AddStateEventHandler(le_cellnet_StateHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_cellnet_TryConnectService(void)void le_cellnet_RemoveStateEventHandler(le_cellnet_StateEventHandlerRef_t handlerRef)void(* le_cellnet_DisconnectHandler_t)(void *)Definition: le_cellnet_interface.h:116le_result_t le_cellnet_GetSimPinCode(le_sim_Id_t simId, char *pinCode, size_t pinCodeSize)void le_cellnet_DisconnectService(void)LE_FULL_API void le_cellnet_SetServerDisconnectHandler(le_cellnet_DisconnectHandler_t disconnectHandler, void *contextPtr)void(* le_cellnet_StateHandlerFunc_t)(le_cellnet_State_t state, void *contextPtr)Definition: le_cellnet_common.h:77void le_cellnet_ConnectService(void)le_result_t le_cellnet_SetSimPinCode(le_sim_Id_t simId, const char *LE_NONNULL pinCode)void le_cellnet_Release(le_cellnet_RequestObjRef_t cellNetRef)le_result_t le_cellnet_GetNetworkState(le_cellnet_State_t *statePtr)