Hi there,
We are developing an nRF52832 based product based on the CAF and Event Manager that requires, among other things, regular reading of sensor data and running control loop calculations based on the readings.
What do you suggest is the best way to implement this form of polling? The event manager docs (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/others/app_event_manager.html) don't suggest any way to regularly emit events.
The nrf Desktop application uses k_work_reschedule in the battery_meas.c to achieve this. However, I thought Workqueue threads are for work that's not time critical?
We were planning on having one of the module spin up a separate thread to regularly submit events, similar to what nrf Desktop does in the motion_sensor module. Any thoughts would be appreciated!
Thanks,
Mark