Hello! I tested the ST BLE Sensor sample on my nrf52840 DK. I have a few questions about the source code:
1. Looking at recv(), connected() and disconnected() functions, seems like they are event driven and asynchronous. Is this correct?
2. Is it single threaded?
3. What happens (which mode) when the MCU is waiting for events? Either during advertising (no devices connect to it yet) or waiting for recv or button press. I saw System On idle mode, System Off sleep mode in another thread. Not sure if there are other modes.
4. Does the rtos automatically handle putting the MCU in idle/sleep mode or do I have to do it (call some sleep function) when it's waiting for events?
Thanks!