This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Convert a sensor value to characteristic value

Dir Sir or Madam,

I defined 2 properties in sensor_server mesh example,

Precise Present Ambient Temperature (0x0075) and Present Indoor Relative Humidity (0x00A7),

using nRF Mesh app to read sensor values.

The question is how can I convert a sensor value to a characteristic value(in this case, Humidity and Temperature) within app_sensor_get_cb()?

I only found this convert function:

uint8_t sensor_percentage8_create(uint8_t value, uint8_t b_exp);

Could you provide more functions?

Thanks!

Related