I am using FXT009 modem.
I am really struggling with this bit, any help is much appreciated.
I am trying to apply following logic but the delay is not being applied between steps 2 and 3, the main functions continues regardless of the delay and the delay only happens once the main function is finished. Why and is there another way of doing this?
For the delay I am using the following function;
adl_tmrSubscribe(FALSE, hysterisis_value, ADL_TMR_TYPE_100MS, (adl_tmrHandler_t) wait_for_hyst);
Send when something changes function
{
Step 1
Step 2
Go to delay check timer function
Step 3
Step 4
}
delay check timer function
{
Go to delay function
}
will start a timer that runs in the background, and will call the callback function after <hysterisis_value * 100ms>. Your code will still continue to run. You have 2 options when implementing a delay:
@Awneil: I am using one task and it worked for me however while downloading the application, if sleep time is > than the time out period then the modem gives timeout error but application download is successful.