latestValueproperty, which contains the latest sensor value obtained, and a
valuesarray, which contains a number of historical values.
timestampproperty, making it easy to check when the latest value was retrieved.
valuesis an empty array.
activeboolean property, which denotes if the sensor poller is active or not.
latestValue(and optionally, empties the
valuesarray) for the given sensor
valuesarray, and for certain sensors like geolocation, additional polling options.
sensorVars.accelerometer.latestValuewould update with the latest accelerometer reading, and
sensorVars.accelerometer.valuesarray would get a new item.
valuesarray has as many historical values as was defined when starting the poller, the oldest entry is removed when the new entry is added.
valueswill be preserved.
valueswill update with a new location value as soon as the native API resolves, and then again when the update interval triggers.
valuesvariables when getting a single sensor value.
null. Optionally, you can also reset the
valuesarray, setting it to an empty array.
sensor:<sensorName>:onPollerErroris triggered, e.g.