Part Number:LAUNCHXL-CC1352R1
在collector_2_4g_CC1352R1_LAUNCHXL_tirtos_ccs这个工程中,温度由十六进制数字0x37a,0x37c等变成华氏温度29,29,30°等的代码在哪个地方
GUI_statusLinePrintf(csfCuiHnGdl, deviceStatusLine, "Sensor – Addr=0x%04x, Temp=%d, RSSI=%d", pSrcAddr->addr.shortAddr, pMsg->tempSensor.ambienceTemp, rssi);
Temp=%d就直接输出华氏温度吗?
YiKai Chen:
华氏温度轉換你得自行實做吧
,
Kevin Qiu1:
Temp输出的应该是摄氏温度
/*! Ambience Chip Temperature – each value represents a 0.01 C degree, so a value of 2475 represents 24.75 C. */ int16_t ambienceTemp; /*! Object Temperature – each value represents a 0.01 C degree, so a value of 2475 represents 24.75 C. */ int16_t objectTemp;