mobileEnableAccelerometer question...
Posted: Sun Mar 24, 2013 12:20 pm
Greetings:
I am wondering, is there an error in the documentation.
I only have to tap my iPad to get an acceleration changed message. In fact, I only need to tap my desk.
The documentation says the interval is in seconds, but shows an example of 100. So, I guessing it means milliseconds. I've tried setting 2000, but still get an instant reading from the accelerometer.
Am I right in thinking the "interval" value does nothing?
TIA...
--paul
I am wondering, is there an error in the documentation.
The way I read that, it means I can define how often I want the accelerationChanged handler to send me updates. But, no matter what value I set for "interval" I seem to get an instant update any time there is any kind of movement.Syntax:
mobileEnableAccelerometer [interval]
The mobileEnableAccelerometer command enables the accelerometer on the device.
The interval is specified in seconds and is the approximate time between delivery of messages.
I only have to tap my iPad to get an acceleration changed message. In fact, I only need to tap my desk.
The documentation says the interval is in seconds, but shows an example of 100. So, I guessing it means milliseconds. I've tried setting 2000, but still get an instant reading from the accelerometer.
Am I right in thinking the "interval" value does nothing?
TIA...
--paul