ADC AUX on the Q2686


#1

Hi,

I was wondering if anybody could point me in the right direction for using ADL commands for the Aux-ADC pin on the Q2686 unit.
I have been unable to find any information on subscribing or reading the ADC and I was wondering if somebody could help me.

Thanks


#2

You should use at commands not ADL.
Here is example of it:

adl_atCmdCreate(“AT+ADC?”, FALSE, (adl_atRspHandler_t) AdcHdl, “*”, NULL);

and…

static void AdcHdl(adl_atResponse_t *pars)
{

}

But you will need to parse response for AT+ADC? manually.