Hi,
Iam using CC2640R2FRSM package , which is 4x4. I want to read the value of temperature from sensor. I read some forums and i got one API AONBatMonTemperatureGetDegC(). Im just calling this api and printing return value of it. But iam getting a garbage value. Kindly let me know , do i need to do any configuration before using this api???
Iam using like this
void temp_sensor(void)
{
int32_t curtemp;
curtemp = AONBatMonTemperatureGetDegC();
UART_write(uart, "\n\rThe temparature is ", 34);
temp_int_to_string(curtemp); /*convert to string and printing */
}