That’s because you missed the important bit:
I:
As already noted, [size=150]don’t make that an inline wait in an Event-Driven environment like Open-AT[/size]
Again,
I:
I would implement this as a State Machine - again, see the previous linked articles…
GaneshPawate:
modem restarts due to watchdog time
That is what will - and should - happen when you use inline waits
The only time such a loop may be used is when it’s of the form: while(1) { adl_eventWait(...); // do something as a result of the Event... } Because, during the Event Wait, other tasks can run… or use adl_ctxSleep(1); this also introduces a moment for the processor to run other tasks
GaneshPawate:
disable WD timer
No, do not do that
The Watchdog is behaving perfectly proprerly & correctly - it is your coding approach which is at fault.