Hi, Thank you providing information. I have checked the git link that you have shared and find the parse API. but not getting Unit for specifi data like Pa or hPa and data size of paramter in return callback function. scaling_factor = sensor_details->scaling_factor;
parse_flag = sensor_details->parse_flag;
data = BHY2_LE2U24(callback_info->data_ptr);
time_to_s_ns(*callback_info->time_stamp, &s, &ns, &tns);
if (parse_flag & PARSE_FLAG_STREAM)
{
DATA("SID: %u; T: %lu.%09lu; %f\r\n", callback_info->sensor_id, s, ns, (float)data * scaling_factor);
}
else
{
if (parse_flag & PARSE_FLAG_HEXSTREAM)
{
stream_hex_data(callback_info->sensor_id, s, ns, callback_info->data_size - 1, callback_info->data_ptr);
}
} Can you please provided input in below query? it would be helpful. BHI260AP shuttle 3.0 output raw data is not matching as per datasheet. 1) Currently i am getting "1005.523438 to 1011" using above API but not sure about the unit, is it Pa or hPa ? 2) From BHI260AP data sheet for BHY2_SENSOR_ID_TEMP_WU payload is 3 byte but i am getting 5 byte, is it correct or not? How should i convert raw data into temperature if it is 5 byte? 3) What parameter should i pass in below API to get the relative altitude? There is no virtual sensor id is available to get altitude. void bhy2_parse_altitude(const uint8_t *data, bhy2_float *altitude)
... View more