1、问了FAE周期更新sensor的数据需要配置
#define SENSOR2_UPDATE_INTERVAL SENSOR_UPDATE_INTERVAL_NA
我配置了没有用?
2、周期处理数据我找到Sensor_Process()里面的才有,pParams = SensorServer->pSensorParams+count;
if (pParams->timerStatus == TIMER_RUNNING) 这里来处理的,我debug人为去改了publishPeriodMs这个参数为1000然后每秒会去读sensor的数据但是publish faillog如下:
2785799 Sensor_MarshalPid - Property Id of sensor 0x004f
2785803 Appli_Sensor_ReadValue - Temperature sensor raw value 2453
2785809 Appli_Sensor_ReadValue - Temperature8 raw value 49, actual value 24.500000
2785816 Sensor_Status - count 0, sensor offset 0, result 0, lengthIncrease 3, dataBufLen 3
2785824 Sensor_Status - **Publication failed**
2785828 Sensor_Process - Sensor publish failed, sensor count 1
2785834 Sensor_Process - publish element index 0, publish sensors count 1