The AT command and its function in the .h files?

i want my TERMINAL reboot after 5 seconds, i will do the timer function like folling :

adl_tmrSubscribe(Ture,50,ADL_TMR_TYPE_100MS,HANDLES)

in at command mode , i know reboot command is “AT+CFUN=1”, but where is the function in the program (“HANDLES”) ?

and other commands how can i find it ?

THX.

HANDLES is the callback function that you provide to the timer subscription. This is a function you write somewhere in your code that contains the code you want to run when the timer expires. I suggest you look at this post on event driven programming to understand the subscription - event model used in OpenAT.

[url]https://forum.sierrawireless.com/t/good-paper-on-event-driven-programming/3848/2]

So if you want to reset the modem in the function HANDLES, you will send the AT command using

adl_atCmdSend("AT+CFUN=1", NULL, NULL);

BTW - it’s HANDLER, not HANDLES