Retrieve one or more physical properties of the sensor
#include <sensor/sensor_api.h>
sensor_get_physical_property(sensor_handle_t handle, args...)
For the args argument, you can provide one or more property-value pairs using sensor_physprop_t values as the name of the property and a pointer to the correct type for the value such as an uint32_t or double value. For more information about the correct types to use, see sensor_physprop_t.
There is no type-checking performed by the compiler, therefore, you must ensure that the value you provide for each property matches the expected data type. Data type mismatches can result in undefined behavior and may cause your application to crash.
sensor_get_physical_property( sensor_handle, SENSOR_PHYSPROP_HORIZONTALFOV, &horizFov, SENSOR_PHYSPROP_VERTICALFOV, &vertFov );
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason why the call failed. This function returns SENSOR_EOPNOTSUPP if the property is not supported for the specified sensor.