cellular_network_event_get_mcc()

Get the Mobile Country Code (MCC) change from a CELLULAR_NETWORK_ID_INFO event.

Synopsis:

#include <bps/cellularnetwork.h>
 
BPS_API const char* cellular_network_event_get_mcc(bps_event_t *event)

Since:

BlackBerry 10.2.0

Arguments:

event

The CELLULAR_NETWORK_ID_INFO event to extract the MCC change from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The cellular_network_event_get_mcc() function extracts the Mobile Country Code (MCC) change from the specified CELLULAR_NETWORK_ID_INFO event. This function returns the Mobile Country Code of the network that the device is currently camped on.

Returns:

The MCC change in string. If MCC is not available, this function returns NULL with errno set to ENOTSUP. For example, NULL is returned if the device is correctly connected to a CDMA/EVDO network.