Start accelerometer poller
- 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Start accelerometer poller
- Updated on 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Start polling for accelerometer values. Latest reading is stored under sensorVars.accelerometer.latestValue
, with sensorVars.accelerometer.values
having a list of historical readings. You can define the maximum size of this list with the History size parameter.
The first output is triggered after the poller has started and the first value has been successfully fetched.
Note that the update interval value is treated by iOS and Android more as a recommendation than an exact value.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
Update interval | updateInterval |
Number(integer) | Yes | 100 | Interval, in ms, of how often the poller should fetch a new value. |
History size | historySize |
Number(integer) | Yes | 20 | Maximum number of historical values to store under sensorVars.accelerometer.values . |
Output arguments
Number of outputs: 2
No output arguments.
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unknown error | unknown |
Thrown when calling the native API resulted in an unknown error. |
Was this article helpful?