solettaproject / soletta

Soletta Project is a framework for making IoT devices. With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.
http://solettaproject.org
Apache License 2.0
225 stars 108 forks source link

iio+network: add iio gyroscope c code sample to iio+network #2334

Closed laykuanloon closed 8 years ago

laykuanloon commented 8 years ago

IIO gyroscope c code sample will print sensor data in console and also publish the sensor data through MQTT.

The sample include calibration and denoise algorithm adopt from https://github.com/01org/android-iio-sensors-hal

The calibration require to put the sensor on level surface.

Calibration and denoise is enabled by default. Can disable by comment out GYRO_CALIBRATE and DENOISE_MEDIAN in the c source file.

Signed-off-by: Lay, Kuan Loon kuan.loon.lay@intel.com

edersondisouza commented 8 years ago

Looks OK to me. Could someone check mqtt use?

laykuanloon commented 8 years ago

@ceolin @edersondisouza

Thanks for your input.

ceolin commented 8 years ago

merged, thanks !