Simplifying IoT development
Sample code for Get Current Network Information
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
static
void
Testle_mrc_GetCurrentNetworkName()
{
le_result_t
res;
char
nameStr[100] = {0};
res =
le_mrc_GetCurrentNetworkName
(nameStr, 1);
LE_ASSERT
(res ==
LE_OVERFLOW
);
res =
le_mrc_GetCurrentNetworkName
(nameStr, 100);;
LE_ASSERT
(res == LE_OK);
LE_INFO
(
"Plmn name.%s"
,nameStr);
}