Hi all,
We are currently working on a project in which we must send an sms. Nevertheless, we have got a problem with Eclipse to compilate our program.
Here is our code (we have used the sms_automaton sample):
#include "adl_global.h"
const u16 wm_apmCustomStackSize = 1024*3;
s32 sms_automaton_Handle_txt;
bool SMS_AUTO_Handler(ascii *SmsTel, ascii *SmsTimeLength, ascii *SmsText){return TRUE;}
void SMS_AUTO_ctrl_Handler(u8 Event, u16 nb){return ;}
void envoi_sms(u8 ID, void * Context){
static int compte = 0;
int a;
ascii Bufferdebug[ 200 ];
ascii Buffer[ 200 ];
wm_sprintf ( Buffer, "Sms n°%d: \r\n", compte );
a = adl_smsSend(sms_automaton_Handle_txt, "0631950478", Buffer, ADL_SMS_MODE_TEXT);
wm_sprintf ( Bufferdebug, "smsSend = %d: \r\n", a );
adl_atSendResponse ( ADL_AT_UNS, Bufferdebug );
}
void adl_main ( adl_InitType_e InitType ){
TRACE (( 1, "Embedded : Appli Init" ));
adl_atSendResponse ( ADL_AT_UNS, "\r\nApp Begin\r\n" );
sms_automaton_Handle_txt = adl_smsSubscribe(SMS_AUTO_Handler, SMS_AUTO_ctrl_Handler, ADL_SMS_MODE_TEXT);
adl_tmrSubscribe ( TRUE, 600, ADL_TMR_TYPE_100MS, envoi_sms );
}
We have the following errors :
00 [time=00] -> line 0
enter new zip file comment *00:00 -> line 0
enter new zip file comment *DiagnoseTips.ini(176bytes security)(deflated 87%)
Thank u very much by advance