Tool/software: Code Composer Studio
Hello,
I'd like to read the temperature of the onboard temperature measurement device on the CC2640r2 and make it available to a "read" characteristic via BLE connection. Where in simplePeripheral should I put code like this:
AONBatMonEnable(); while(1) { while(!AONBatMonNewTempMeasureReady()); int32_t temp = AONBatMonTemperatureGetDegC(); }
Do I need to create an independent thread for this simple action?
Thanks,
Patrick