# Problem with the send of an SMS in C

**URL:** <https://forum.sierrawireless.com/t/problem-with-the-send-of-an-sms-in-c/3528>\
**Category:** Legacy FX/FXT series\
**Created:** [August 4, 2009, 9:35am UTC](https://forum.sierrawireless.com/t/problem-with-the-send-of-an-sms-in-c/3528 "2009-08-04T09:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tabla](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@tabla](https://forum.sierrawireless.com/u/tabla)\
**Post date:** [August 4, 2009, 9:35am UTC](https://forum.sierrawireless.com/t/problem-with-the-send-of-an-sms-in-c/3528/1 "2009-08-04T09:35:09Z")

</div>

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):

```auto
#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

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [August 4, 2009, 9:37am UTC](https://forum.sierrawireless.com/t/problem-with-the-send-of-an-sms-in-c/3528/2 "2009-08-04T09:37:56Z")

</div>

> [@tabla](#):
>
> We have the following errors

Why do you say they are “errors” ?

---

<div class="post-metadata">

**Author:** ![tabla](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@tabla](https://forum.sierrawireless.com/u/tabla)\
**Post date:** [August 6, 2009, 10:17am UTC](https://forum.sierrawireless.com/t/problem-with-the-send-of-an-sms-in-c/3528/3 "2009-08-06T10:17:13Z")

</div>

Oh no it works, it’s because we included the sms\_automaton.c and it brought errors but when we create a new project with just the program it works perfectly. Now we’re trying to send the gps coordinates, do you have an idea how to catch the coodinates in C ?  
thank you
