thx awneil for the reply, we found that it should be s8 for the adl_smssend but now we got the error (s=-8) which mean the modem is not ready to send the sms. We check the network registration and found out that whenever we start the program we the network registration will be set to +creg (1,2) then after awhile it will change to +creg (1,1). How can we start the program after it had change to +creg(1,1)? thank for your help!!!
This code is place under the void adl_main ( adl_InitType_e InitType ) . The rest of the code is the same as shown from the orginal post. I’m not sure about the value “TimerHandler”. That one is under adl_timerHandler.h
Again here as well…You should subscribe to SIM then to declare adl_smsSend in one of the cases. That s why you get -8 error. Try this and you will send an SMS
Again here as well, it is not necessary to either subscribe the SIM Service or to call adl_smsSend in the SIM Event handler;
It is one way to proceed, but it is by no means the only way!