I am using the Q2687 on Fastrack supreme. i connect the output voltage of a temperature sensor to the AUX-ADC.
I use the command :
adl_atCmdCreate(“AT+ADC?”, FALSE, (adl_atRspHandler_t)ADCHandler, “+ADC:”, NULL);
and in the handler:
void ADCHandler(adl_atResponse_t *param)
i print the param->StrData on the UART. I get the following result:
817 is the 817millivolts i connected to the AUX-ADC. I want to get this value from the string, convert it to volts by dividing by 1000 and then i have to use a certain formula to convert it to degrees celsius. Can someone tell me how to extract the 817 from the param->StrData string.