Write message to memory!

Any know what I am doing wrong?

Best regards /Jörgen

wm_strcpy(Buff, "AT+CMGW=\"");
wm_strcat(Buff, tel_nr);
wm_strcat(Buff, "\"");
adl_atCmdCreate(Buff,TRUE, (adl_atRspHandler_t) my_sms_response_handler,">",NULL );

s16 my_sms_response_handler(adl_atResponse_t *paras)
{
   TRACE (( 1, "my_sms_response_handler"));
   adl_atCmdSendText ( ADL_AT_PORT_TYPE ( paras->Dest, ADL_AT_RSP ), "Testing!!!");
   return FALSE;
}

Jorgen,

What error or behavior did you get ?

Why did you but “>” ?? Try to change to “*” and see what happens !!!

Rgds,
Gus

I got it working now.

adl_atCmdCreate(Buff, ADL_AT_PORT_TYPE ( param->Port, ADL_AT_RSP ), (adl_atRspHandler_t) my_sms_response_handler,">",NULL );