语言

Menu
Sites
Language
E_INVALID_ARG on receiving magnetic sensor events

While receiving magnetic sensor events on OnDataReceived(), the input result r is E_INVALID_ARG.   But if we continue to take the magnetic sensor values without returning,  we are able to get the X,Y, Z values of magnetic sensor correctly. All other sensors except magnetic sensor, data are received with E_SUCCESS as result.   

Is this the issue with SDK or any other?

Thank you!

响应

3 回复
Alex Dem

Hi,
I have checked example->SensorApp on 2.2.0 official device. First time I have got E_INVALID_ARG.
After I have changed interval value or set dataChanged = true for Tizen::Uix::Sensor::SensorManager::AddSensorListener magnetic sensor begin works stable.
Alexey.
 

Saina N

Hi,

Thanks for the reply.

I have already changed the interval value [TIZEN_SENSOR_MAGNETIC interval: max=100,  min=20, I have set interval=40], and set dataChanged to true on AddSensorListener. But still the result is received as E_INVALID_ARG. Any idea?

 

 

kimi

Hi,

Give the value of dataChanged as "true".

 

Kimi.