cellular_network_get_network_id()

Get the current cellular network country code and network code.

Synopsis:

#include <bps/cellularnetwork.h>
 
BPS_API int cellular_network_get_network_id(char **mcc,
                                            char **mnc)

Since:

BlackBerry 10.2.0

Arguments:

mcc

The current mobile country code of the network that the device is camped on or NULL if the MCC is not available. Upon success the caller must call bps_free() to free the buffer.

mnc

The current mobile network code of the network that the device is camped on or NULL if the MNC is not available. Upon success the caller must call bps_free() to free the buffer.

Library:

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

Description:

The cellular_network_get_network_id() function gets the current cellular network country code and network code. After the caller is done using the MCC and MNC, use bps_free() to free the memory.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.