void TestConnectivity
(
le_mdc_ProfileRef_t profileRef
)
{
int status;
char systemCmd[200] = {0};
char itfName[LE_MDC_INTERFACE_NAME_MAX_BYTES] = "\0";
le_mdc_DataBearerTechnology_t downlinkDataBearerTech;
le_mdc_DataBearerTechnology_t uplinkDataBearerTech;
uint64_t rxBytes = 0, txBytes = 0;
uint64_t latestRxBytes = 0, latestTxBytes = 0;
&downlinkDataBearerTech,
&uplinkDataBearerTech));
LE_INFO(
"downlinkDataBearerTech %d, uplinkDataBearerTech %d",
downlinkDataBearerTech, uplinkDataBearerTech);
{
snprintf(systemCmd, sizeof(systemCmd), "ping -c 4 www.sierrawireless.com -I %s", itfName);
}
else
{
snprintf(systemCmd, sizeof(systemCmd), "ping6 -c 4 www.sierrawireless.com -I %s", itfName);
}
status = system(systemCmd);
if (WEXITSTATUS(status))
{
}
latestRxBytes = rxBytes;
latestTxBytes = txBytes;
LE_INFO(
"rxBytes %"PRIu64
", txBytes %"PRIu64, rxBytes, txBytes);
status = system(systemCmd);
if (WEXITSTATUS(status))
{
}
LE_INFO(
"rxBytes %"PRIu64
", txBytes %"PRIu64, rxBytes, txBytes);
}