SKYENGINE API 参考手册返回目录 |
(int32 code =
1203,
int32 mr_platEx
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB*
cb
)
Description
调用发送彩信功能。
Parameters
Name
Description
input
mr_mms_st数据结构指针
input_len
mr_mms_st数据结构大小
output
无
output_len
无
cb
无
MR_SUCCESS 成功
MR_FAILED 失败
MR_IGNORE 不支持该功能
mr_mms_st数据结构:
typedef struct
{
char* addr; //接收地址指针,ASCII
uint16* content; //预设内容指针,大端unicode
}mr_mms_st;
/*mrp code*/
#define SENDSMSTO "10086"
#define SENDCONTENT "Hello: Sky Test!"
mr_mms_st seedReq = { 0 };
char wcontent[50];
str2wstr( (PCSTR)SENDCONTENT, (PWSTR)&wcontent[0], (Sint32)sizeof(wcontent) );
seedReq.addr = SENDSMSTO;
seedReq.content = (uint16*)wcontent;
mrc_platEx( 1203, (uint8*)&seedReq, (int32)sizeof(mr_mms_st), NULL, NULL, NULL );