0

Enable bluetooth on feather 2
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Enable bluetooth on feather 2

by archer112358 on Wed Jul 28, 2021 9:36 pm

Is there anything special I need to do to enable bluetooth on the feather 2? When following this guide: https://learn.adafruit.com/ble-hid-keyboard-buttons-with-circuitpython?view=all, I was getting this error:

Code: Select all | TOGGLE FULL SIZE
_bleio.BluetoothError: Adapter not enabled


This is the offending line in the code:

Code: Select all | TOGGLE FULL SIZE
hid = HIDService()


I've searched what I can but I haven't found anything. By thought is that there is some sort of feature that needs be enabled in something like boot.py, but I didn't see anything like that in the various guides/forums. Any ideas?

archer112358
 
Posts: 4
Joined: Tue Jul 27, 2021 11:18 pm

Re: Enable bluetooth on feather 2

by mikeysklar on Thu Jul 29, 2021 10:18 pm

The Feather S2 is using the ESP-32S2. This does not support BLE.

Note: Don't confuse the ESP32 with the ESP32-S2, which is a different module with a similar name. The ESP32-S2 does not support BLE.


https://learn.adafruit.com/adafruit-pyp ... python-ble

mikeysklar
 
Posts: 5622
Joined: Mon Aug 01, 2016 8:10 pm

Re: Enable bluetooth on feather 2

by archer112358 on Fri Jul 30, 2021 12:20 am

Alas, this is true. I made the wrong assumptions when I made the purchase. Thanks for the help!

archer112358
 
Posts: 4
Joined: Tue Jul 27, 2021 11:18 pm

Re: Enable bluetooth on feather 2

by mikeysklar on Fri Jul 30, 2021 11:39 am

@archer112358,

Any easy mistake to make. On a related note if you do pickup a ESP32 based board that does support bluetooth you will still be limited to peripheral support.

Currently the AirLift support for CircuitPython only provides BLE peripheral support. BLE central is under development. So you cannot connect to BLE devices like Heart Rate monitors, etc., but you can act as a BLE peripheral yourself.


I can recommend some nRF52 or AirLift based controllers if you like.

mikeysklar
 
Posts: 5622
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.