sensorStart()
Starts retrieving values from the sensor.
Synopsis
int sensorStart(int sensor);
Parameters
Parameter | Description |
---|---|
sensor | Index of the sensor. |
Return Value
The return value shows if the sensor was started or not.
-
0: Sensor successfully started
-
1: Sensor is currently busy (used by another application) and cannot be started
-
2: Starting the sensor failed for some other reason
-
-1: Invalid sensor ID
Description
Starts retrieving values from the sensor with the given index. This index is returned by the function sensorOpen().
Assignment
Mobile UI control functions
Availability
UI
See also