Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Time.Sleep 6.0 and BLE Question
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Time.Sleep 6.0 and BLE Question

by madgrizzle on Wed Jul 29, 2020 8:20 am

In 6.0, will time.sleep interfere with receiving messages via BLE uart on a nRF52840? That is, if I put the board to sleep for 1 second and a BLE message is sent from another device, will the nRF52840 miss the message or will it still stay in the uart queue and be ready for processing when it wakes up?

Thanks!

madgrizzle
 
Posts: 5
Joined: Tue Feb 05, 2019 4:14 pm

Re: Time.Sleep 6.0 and BLE Question

by tannewt on Wed Jul 29, 2020 12:01 pm

I believe the messages will be queued. I haven't tested it myself though.

Sleep isn't very aggressive so it'll wake up to handle the BLE connection and then go back to sleep.

tannewt
 
Posts: 1716
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.