I want to execute my application on every recived sms, i have developed an application that reply’s if SMS contains a keyword.
I have looked at the adl_atUnSoSubscribe(ASCII *UnSostr, adl_atUnSoHandler_t UnSohdl) function, and subscribe to +CMTI. Then run the autoreply code as the callback function.
Any suggestions on how I can make my application execute on incomming sms?
Thanks!!
Current main
void adl_main( adl_InitType_e InitType )
{
delay();
TRACE (( 1, "Start SMS_Automaton application" ));
bool handle;
handle=smsauto_recive;
if(handle)
{
smsauto_answer();
smsauto_stop();
}
else
{
smsauto_stop();
TRACE (( 1, "Does nothing" ));
}
}