SKYENGINE API 参考手册返回目录 |
(int32 code =
1108,
int32 mr_platEx
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB*
cb
)
Description
从缓存中读取apn信息。
Parameters
Name
Description
input
无
input_len
无
output
T_DSM_DATA_ACCOUNT数据结构指针
output_len
T_DSM_DATA_ACCOUNT数据结构大小
cb
无
MR_SUCCESS 请求成功
MR_FAILED 请求失败
MR_IGNORE 不支持该功能
Apn的数据结果如下:
typedef struct
{
uint8 authentication_type;
uint8 user_name[32];
uint8 password[32];
uint8 dns[4];
uint8 apn[100];
}T_DSM_DATA_ACCOUNT;
/*mrp code*/
T_DSM_DATA_ACCOUNT *apnInfo = NULL;
int32 len;mrc_platEx( 1108, NULL, 0, (uint8**)&apnInfo, (int32*)&len, NULL );
mrc_printf( "authentication_type:%d, user_name:%s, password:%s, dns:%s, apn:%s",apnInfo->authentication_type, apnInfo->user_name, apnInfo->password, apnInfo->dns, apnInfo->apn );