Hi,

I have 2 tasks:


Task 1

Is the  'app_task_handler'
It is the 'host parent task' that calls 'bl_hs_start' and
It dispatches the OS_EVENT_T_TIMER events.
That's all.

Task 2

Makes calls to  'ble_gatts_register_svcs' and 'ble_gap_adv_start'
Registers callbacks that will be dispatched by 'gatt_svr_chr_handler'


Everything works fine when the above is combined as a single tasks.

When I separated the BLE init and os event handling from the GATT
registration and logic, as above, the app 'no longer works'.   (Task 2 is a
rather complicated beast so keeping things to a summary for now)

Was it rather hopeful of me hoping that this task splitting would just work
'out of context', or, should it work?

Would forwarding the event as-is from Task1 to Task2's event queue be
considered harmful?

All the best
Wayne

Reply via email to