I am using the base code from https://github.com/adafruit/Adafruit_CircuitPython_BLE/. I am running the Python script locally on my Mac. The scanning program finds devices like my iPhone and other bluetooth devices nearby, but does not find the ItsyBitsy nRF52840 Express that is plugged in. I have run the same script with the Adafruit Feather 32u4 Bluefruit LE board and I am able to detect it. Is there something I am doing wrong?
Also, I am able to detect the ItsyBitsy nRF52840 Express with the Adafruit Connect app on my phone, so I presume that the advertising packets are being sent out from the board, but just not being picked up by my Mac?
adafruit_ble Python Module
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: adafruit_ble Python Module
What scanning program are you running on the Mac?
- bobzai2015
- Posts: 8
- Joined: Tue Nov 15, 2022 11:39 pm
Re: adafruit_ble Python Module
Written in Python and running the script on Terminal:
Code: Select all
from adafruit_ble import BLERadio
radio = BLERadio()
print("scanning")
found = set()
for entry in radio.start_scan(timeout=60, minimum_rssi=-80):
addr = entry.address
if addr not in found:
print(entry)
found.add(addr)
print("scan done")
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: adafruit_ble Python Module
The BLE support on linux setups is limited:
https://github.com/adafruit/Adafruit_Ci ... -from-pypi
https://github.com/adafruit/Adafruit_Blinka_bleio
But it sounds like the scanner is at least working for some devices - so seems functional to a certain extent.
What firmware is running on the Feather 32u4 that can be detected with the scanner?
https://github.com/adafruit/Adafruit_Ci ... -from-pypi
https://github.com/adafruit/Adafruit_Blinka_bleio
But it sounds like the scanner is at least working for some devices - so seems functional to a certain extent.
What firmware is running on the Feather 32u4 that can be detected with the scanner?
Please be positive and constructive with your questions and comments.