Ble Methods inside thread

Hello

I have an application in zephyr with multiple threads and i want to know if it is possible to have a ble service for example the  Nordic Uart Service on a thread and still works after the context switch of the scheduler .

Thanks

Jim

Parents Reply Children
  • Hi,

    I am not sure what you mean by start your bluetooth service "start my Bluetooth service", but generally this should not be a problem. The bluetooth stack itself runs in a different thread itself. And starting things in one thread does not matter. All standard modules in Zephyr and nRF Connect SDK is designed to be used in an RTOS context, where you typically have multiple threads and context switching.

    (Of course, if you for some reason have a bug where high priority loop is in a bad state so that is consumes all CPU resources that would cause problems, like it would in any system).

Related