VM_RESULT vm_gsm_sms_send( VMWSTR phone_number, VMWSTR content, vm_gsm_sms_callback callback, void* user_data );
VM_RESULT vm_gsm_sms_send( VMWSTR phone_number, VMWSTR content, vm_gsm_sms_callback callback, void* user_data );
Sends SMS
|
Parameters |
Description |
|
VMWSTR phone_number |
[IN] Destination phone number. |
|
VMWSTR content |
[IN] SMS content to be sent. |
|
vm_gsm_sms_callback callback |
[IN] The callback to be invoked after the SMS is sent. The actual result of the SMS send operation is captured by the result field of vm_gsm_sms_callback_t. Refer to VM_GSM_SMS_SEND_RESULT for detail. |
|
void* user_data |
[IN] Additional user data. |
Refer to VM_GSM_SMS_SEND_RESULT for return value and error code.
void custom_sms_send_callback(vm_gsm_sms_callback_t* callback_data) { if(callback_data->action == VM_GSM_SMS_ACTION_SEND) { vm_log_debug("Send SMS callback, result = %d, callback_data->result); } } void custom_sms_send(void) { VMWCHAR content[100]; VMWCHAR num[100]; VMINT res = 0; vm_ascii_to_ucs2(content, 100*2, "Hello, LINKIT SMS!"); vm_ascii_to_ucs2(num, 100*2, "10086"); res = vm_gsm_sms_send(num, content, custom_sms_send_callback, NULL); if(res == 0) { vm_log_debug("Send SMS failed!"); } }
vmgsm_sms.h
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.