I am trying to read Sensor data (Light Sensor) using Tizen Platform-Specific API Reference.
Both Tizen Native & Tizen Web have Sensor Guides to achieve the task, And I have successfully implemented both Native Light Sensor and Web Light Sensor applications.
https://developer.tizen.org/development/guides/web-application/sensors/device-sensors
Both the Guides explained the steps :
- Including the header file
- Creating a Sensor Listener
- Registering Callback functions
- Setting Interval
- ....
- Stopping the sensor & all that
But this Link below in Comparison to Native and Web is just BLANK.
https://developer.tizen.org/dev-guide/csapi/classTizen_1_1Sensor_1_1LightSensor.html
At the page end:
Hints me this is just an Auto/Semi Automatically Generated Documentation. Not a "Developer's Guide" thing.
I downloaded the 'Application Control ' Sample, and tried to understand how they are using the Tizen Application APIs by setting Debug Pointers. By following that methodology I came up to this from Scratch (New Project):
LighSensorData.cs in LightSensorData (Portable):
Interface.cs in LightSensorData (Portable):
SensorHandle.cs in LightSensorData.TizenMobile:
# Added 'healtinfo' privilege in tizen-manifest.xml
Now the Level property is giving me a Garbage Value of -3.40282347E+38, Same happens with the UltravioletIndex while using Ultraviolet Sensor. I changed the Light Sensor level from control panel of Emulator, Still no progress.
Please Share How can I Get the Level of the light
Additionally, Excuse my lackings, But I am not yet able to use the:
EventHandler<LightSensorDataUpdatedEventArgs> Tizen.Sensor.LightSensor.DataUpdated
Cause I'm not sure about the syntax, nor have any guide with example.
( I have also added the Source Code as attachment. I am using Windows 7 64 bit, Microsoft Visual Studio 2015 Community Edition, Visual Studio Tools for Tizen Preview 3, Tizen HD Mobile Emulator )
*******************************************************************************************************************************************
Please Share How to read data from Sensor and what am I doing wrong.
Any help is appreciated !!!
********************************************************************************************************************************************