Question about the sleep mode, I'm really confused how this should work.
if I put this in my system_init():
and I put this in my prvSetupHardware():
/* Initialize Wake-up timer */
Then there is nothing more to configure regarding sleep mode, right?
As soon as there is no more BLE activity the device will go to sleep mode.
And sinds I have no button as wake-up the only wake-up possible is if there is power on the VBUS.
However my device will go to sleep mode immediately after startup. Even if I have
ble_gap_adv_data_set(sizeof(adv_data), adv_data, 0, NULL);
configured in my ble_peripheral_task().
BTW I use the dk_apps/features/ble_peripheral/ as template for my project.
So as far as I know there should be BLE activity but the device enters sleep mode.
What am I missing?