sensor_info_get_power()

Get the power of a sensor.

Synopsis:

#include <bps/sensor.h>
 
BPS_API float sensor_info_get_power(sensor_info_t *info)

Arguments:

info
The information for the sensor to get the power of.

Library:

libbps

Description:

The sensor_info_get_power() function gets the power of the sensor that is represented by the specified sensor information.

Returns:

The sensor's power.