Hello everyone,
I am developing a ble project that builds on the peripheral Uart example using the sdk 2.4.0 for nrf5340.
I want to implement a watchdog since I sometimes run into corners where the code does not otherwise recover itself. I found the watchdog driver example and have successfully set up the watchdog in the peripheral Uart example, however, I do not understand where in the code I should feed the watchdog using wdt_feed(wdt, wdt_channel_id); since the main seems to run only once to set up the ble advertising.
So, where should I feed the watchdog in case there is a) a connection and b) no connection?
Thanks in advance!
Paul