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 depends106 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------116 * Connect the current client thread to the service providing this API. Block until the service is119 * For each thread that wants to use this API, either ConnectService or TryConnectService must be120 * called before any other functions in this API. Normally, ConnectService is automatically called125 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------134 * Try to connect the current client thread to the service providing this API. Return with an error137 * For each thread that wants to use this API, either ConnectService or TryConnectService must be138 * called before any other functions in this API. Normally, ConnectService is automatically called147 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).150 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------160 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants163 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------176 * longer a connection to the service, and the functions in this API can't be used. For details, see181 //--------------------------------------------------------------------------------------------------188 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------224 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------234 (241 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------292 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------void(* le_cellnet_StateHandlerFunc_t)(le_cellnet_State_t state, void *contextPtr)Definition: le_cellnet_interface.h:234le_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:111struct le_cellnet_StateEventHandler * le_cellnet_StateEventHandlerRef_tDefinition: le_cellnet_interface.h:225struct le_cellnet_RequestObj * le_cellnet_RequestObjRef_tDefinition: le_cellnet_interface.h:193void le_cellnet_RemoveStateEventHandler(le_cellnet_StateEventHandlerRef_t handlerRef)le_result_t le_cellnet_GetNetworkState(le_cellnet_State_t *statePtr)void le_cellnet_SetServerDisconnectHandler(le_cellnet_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_cellnet_SetSimPinCode(le_sim_Id_t simId, const char *pinCode)le_result_t le_cellnet_GetSimPinCode(le_sim_Id_t simId, char *pinCode, size_t pinCodeSize)