Simplifying IoT development
Sample code for SIM Select
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
void
simTest_SimSelect
(
)
{
// Select the embedded SIM
le_result_t
res =
le_sim_SelectCard
(
LE_SIM_EMBEDDED
);
LE_ASSERT
(res == LE_OK);
// Get the selected card
le_sim_Id_t
simId =
le_sim_GetSelectedCard
();
LE_ASSERT
(simId ==
LE_SIM_EMBEDDED
);
// Select the embedded SIM
res =
le_sim_SelectCard
(
LE_SIM_EXTERNAL_SLOT_1
);
LE_ASSERT
(res == LE_OK);
// Get the selected card
simId =
le_sim_GetSelectedCard
();
LE_ASSERT
(simId ==
LE_SIM_EXTERNAL_SLOT_1
);
}