sperlot
1
Good morning,
I am a beginner with OpenAT programming.
I cannot find how to send an AT command to my fastrack using a adl_ function !
This may seem obvious but I am really lost.
Can someone post a simple script showing how to send an at command (for exemple ATI3) and get the wavecom answer ?
With many thanks
MP
Thank you but now I want to catch the answer to the AT command in my code and for example print it.
Can you please tell me how to fill in the blank (âŚ) in the following code ?
Sorry, I have problems to handle pointers
ascii ADC_Response_Handler (adl_atResponse_t *paras)
{
adl_atSendResponse(ADL_AT_RSP,...);
return TRUE;
}
void adl_main ( adl_InitType_e InitType ){
adl_atCmdCreate("at+cmgf=?\x1A", ADL_AT_PORT_TYPE( ADL_AT_UART1, TRUE ),(adl_atRspHandler_t) ADC_Response_Handler, "+CMGF: ", NULL);
}
With many thanks !!!
awneil
4
The âanswerâ to the command is delivered to your response handler.
There is no need for you to print it yourself - just follow the instructions and the response will be passed through to the external applicationâŚ
That is a really basic skill essential to any kind of âCâ programming - not at all specific to Open-AT.
Maybe you should spend some time getting up to speed with the basics of âCâ before adding the extra complexities of Open-ATâŚ?