# FTP\_PUT with Cycle timer

**URL:** <https://forum.sierrawireless.com/t/ftp-put-with-cycle-timer/2987>\
**Category:** Open AT\
**Created:** [February 26, 2009, 11:03pm UTC](https://forum.sierrawireless.com/t/ftp-put-with-cycle-timer/2987 "2009-02-26T23:03:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snoke](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@snoke](https://forum.sierrawireless.com/u/snoke)\
**Post date:** [February 26, 2009, 11:03pm UTC](https://forum.sierrawireless.com/t/ftp-put-with-cycle-timer/2987/1 "2009-02-26T23:03:07Z")

</div>

I want to do a cycle of 10minutos to send a file via ftp.

This is my code, but is not working, it just sends a one time…  
But I active the cycle with this line: adl\_tmrSubscribe ( TRUE, 300, ADL\_TMR\_TYPE\_100MS, adl\_main );

I do not understand why is not working…

If someone can help me, I am grateful!

```auto
void adl_main ( adl_InitType_e InitType ) {
  int r;
  adl_tmrSubscribe ( TRUE, 300, ADL_TMR_TYPE_100MS, adl_main );
  TRACE (( 1, "Embedded Application : Main" ));

  /* Initialize the stack */
  r = wip_netInitOpts(WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART1, WIP_NET_OPT_END);
      
#if defined(OVER_GPRS)
  /* Initialize GPRS connection */
  cfg_gprs(appli_entry_point);

#else
  /* Don't initialize any bearer; only 
   * localhost=127.0.0.1 will be reachable. */
  appli_entry_point();

#endif
}
```

---

<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:** [February 26, 2009, 11:24pm UTC](https://forum.sierrawireless.com/t/ftp-put-with-cycle-timer/2987/2 "2009-02-26T23:24:09Z")

</div>

You can’t have adl\_main as your timer handler!

Check the return value from adl\_tmrSubscribe
