... | ... | @@ -130,7 +130,7 @@ void testCallback() { |
|
|
printf("Test data : %f \n", data);
|
|
|
}
|
|
|
```
|
|
|
You use use `std::bind()` in order to bind your callback to an `std::function<void()>>` object.
|
|
|
You can use `std::bind()` in order to bind your callback to an `std::function<void()>>` object.
|
|
|
Select the required frequency for the sampling and add the sensor and the callback to the `SensorManager`.
|
|
|
|
|
|
You can now start the `SensorManager`.
|
... | ... | |