Feather nRF52840 Express Turn BLE OFF
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- sjgregorski
- Posts: 2
- Joined: Thu Feb 07, 2019 8:25 pm
Feather nRF52840 Express Turn BLE OFF
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.
- jevada
- Posts: 194
- Joined: Fri Dec 15, 2017 5:29 am
Re: Feather nRF52840 Express Turn BLE OFF
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...
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...
Please be positive and constructive with your questions and comments.