Languages

Menu
Sites
Language
Get Data from Accelerometer

I want to develop an app to get the acceleration data in real-time on mi Gear Fit 2 Pro, the problem that I'm having is that:

When I do the line: tizen.sensorservice.getAvailableSensors( ) as a response cames the GRAVITY, HRW, GYROSCOPE but on the specs of the device it says it has an accelerometer so I tried the tizen.systeminfo.getCapability('http://tizen.org/feature/sensor.accelerometer'); and it returns true but when I try to set the tizen.sensorservice.getDefaultSensor("ACCELEROMETER") I got an error: "TypeMismatchError: argument type mismatch " searching on other blogs one person said it was because of the Tizen version, if is it true how can update the Tizen version of my device or how can I access the acceleration sensor data?

 

thanks in advance

 

EDIT

current Tizen version is 2.3

Edited by: Andrés Ramos on 31 May, 2020