Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Feather nRF52840 Express Turn BLE OFF
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather nRF52840 Express Turn BLE OFF

by sjgregorski on Tue Oct 19, 2021 9:07 pm

I'm programming a Feather nRF52840 Express in the Arduino IDE. I can turn BLE ON and it works great. I'm using the Peripheral bleuart.ino example as my starting point. My question is how do I turn the BLE functionality OFF , even temporarily? I'm running code that reads a rotary encoder using hardware interrupts and I'm concerned that sometimes the BLE functionality running in the background is causing me to miss encoder counts. What I really want is a way to turn the BLE OFF and ON. Any ideas ? I've seen posts elsewhere where others are looking for the "Bluefruit.stop()" function but without luck. Thanks.

sjgregorski
 
Posts: 2
Joined: Thu Feb 07, 2019 8:25 pm

Re: Feather nRF52840 Express Turn BLE OFF

by jevada on Thu Oct 21, 2021 3:47 pm

If you switch BLE off, the nRF's radio will disconnect and probably it will generate an exception somewhere.
If you need super-tight timing, nRF52 provides a lot of hardware support through its PPI. You could simply connect a GPIOTE event to a counter task. No interrupts necessary...

jevada
 
Posts: 177
Joined: Fri Dec 15, 2017 5:29 am

Please be positive and constructive with your questions and comments.