Sample code for SIM Identification
//--------------------------------------------------------------------------------------------------/*** Print function.**///--------------------------------------------------------------------------------------------------void Print(char* string){bool sandboxed = (getuid() != 0);if(sandboxed){}else{fprintf(stderr, "%s\n", string);}}
//--------------------------------------------------------------------------------------------------/*** Test: Creation & information retrieving.**///--------------------------------------------------------------------------------------------------void simTest_Create(le_sim_Id_t simId,const char* pinPtr){bool presence = false;char iccid[LE_SIM_ICCID_BYTES] = {0};char imsi[LE_SIM_IMSI_BYTES] = {0};char eid[LE_SIM_EID_BYTES] = {0};// Enter PIN codeLE_ASSERT_OK(le_sim_EnterPIN(simId, pinPtr));// Get ICCIDPrint( iccid );// Get EIDPrint( eid );// Get IMSIPrint( imsi );// Check if SIM presentpresence = le_sim_IsPresent(simId);LE_ASSERT(presence);}