When calling app_sched_event_put() no check is done whether the exact same record (same data, length and function pointer) already exists in the queue. We have setup where we put the UART events into the scheduler event queue, as the documentation says (sched_event_put(p_event, sizeof(p_event), te_uart_scheduler_event);).
However, we usually get a lot of events that are put into the queue that are identical. This means that we need to have a large queue in order not to lose other ("unique") events. Also, once app_sched_execute() is called, there will be a lot of unnecessary calls to the uart event function pointer.
Any thoughts about this?
Thanks, Jacob