Retrieve the sensor unit associated with a sensor handle
#include <sensor/sensor_api.h>
sensor_error_t sensor_get_unit(sensor_handle_t handle, sensor_unit_t *unit)
This function can be used for example inside a sensor data callback function to discover from which sensor unit is the buffer coming.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.