• I haven't tried having a delay per se., but when it's connected to the IDE and producing 13313 errors, it'll do it whenever the button is pressed, repeatedly for as long as you like.

    I have been running setServices and setAdvertising whenever it comes out of sleep with NRF.wake() too... I wasn't sure if doing NRF.sleep() wiped the existing records. Regardless, I was trying to do setAdvertising() to update the battery level, so it would need to be called repeatedly.

    To be honest, the lack of an isConnected() and an isSleeping() method is a bit inconvenient. Getting the status of the softdevice would be useful, rather than trying to track it manually.


Avatar for tom.gidden @tom.gidden started