Hey guys,
I'd like to create a listener and manually start heart rate monitoring.
When setting up the listener and sensor, it returns error -22 (SENSOR_ERROR_INVALID_PARAMETER).
I'm using a GearS2 and the recent 2.3.1 SDK.
Not sure what's wrong here, since right now I'm just testing the code from https://developer.tizen.org/development/tutorials/native-application/system/sensor
sensor_listener_h listener;
sensor_type_e type = SENSOR_HRM;
sensor_h sensor;
sensor_get_default_sensor(type, &sensor);
sensor_create_listener(sensor, &listener);
sensor_listener_set_event_cb(listener, 1000, on_sensor_event, user_data);
sensor_listener_set_interval(listener, 1000);
sensor_listener_start(listener);
The following features is added to the manifest:
sensor.heart_rate_monitor
Thanks in advance!