Response from +clip

Hello I’m just tring to process the response from +clip on an in coming call. eg

/***************************************************************************/
static bool clip_callback(adl_atResponse_t *Rsp){
	TRACE((5,"Got clip"));
	return TRUE;
}
/***************************************************************************/
void adl_main ( adl_InitType_e  InitType )
{


	TRACE (( 1, "Embedded : Appli Init" ));

	adl_atCmdCreate( "AT+CLIP=1", FALSE, clip_callback, "+CLIP:", NULL);

I get no TRACE response and find the AT command has not set AT+CLIP to 1,1
Is there something basic I’m missing?
Thnaks

Yes: try typing AT+CLIP=1 in Hypoterminal, and see what response you get - it isn’t +CLIP: is it…?

yes it works directly but I’m triing to get the C-code above to work

Think more carefully: when you type the command “AT+CLIP=1”, what response do you get to that command?
ie, what response appears immediately after you type the command?

The “+CLIP” is not a response to that command, is it?

ie, the “+CLIP” does not appear as a direect, immediate response to you typing “AT+CLIP=1”, does it?

No but should this matter with this event type programming? Any time the event occurs the event hanndler should be able to run until its turned off?
If not how would one intercept the CLIP response?

Indeed - but if you’re looking for the wrong event, it will never happen!

Look again at the list of AT Command Events - there are responses, and there are Unsolicited responses, aren’t there…?

Thanks
adl_atUnSoSubscribe("+CLIP:",(adl_atUnSoHandler_t)clip_handler);

does it

BUT Now how do it get the string out of the paras

TRACE((5,ADL_GET_PARAM(paras,0)));

has error no member named ParaList
Solution

TRACE((5,paras->StrData));