nRF connect SDK HRS Central

Hi,

Sorry for the very basic questions. I am new to nRF connect SDK.

I want to develop a ble custom central application with my custom characteristics. I started to look into the HRS central example (central_hr) provided in the zephyr to understand the related apis. It does work nicely and it prints the scanned devices in the console. 

  1. But I see that the control hits the return 0 instruction in the main(). I am trying to understand the call sequence. How does it work even after the code is exited ? Are the RTOS primitives used in this example and where is the scheduler started ?
  2. Is there an NCS example for custom service/characteristic implementation ?
  3. I also would like to use the USB CDC ACM interface on my nRF52840 DK ? Could you please point me to an example which I can use for my implementation ?

4. Also, does this example use soft device internally ?

Related