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!
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
}