sensor_new()
Create a new sensor of the type specified.
Synopsis:
#include <sensor/libsensor.h>
sensor_t* sensor_new(sensor_type_e sensor_type)
Arguments:
- sensor_type
-
The sensor type you wish to create a handle for. Sensor types are defined in sensor/sensor.h.
Library:
libsensorDescription:
Returns:
sensor_t* A pointer to the sensor if successful, otherwise NULL. You'll need to pass this handle to many of the sensor functions.