-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using detection_callback with service UUID in MacOS 12.4 #961
Comments
If you have a question, please start a discussion: /~https://github.com/hbldh/bleak/discussions |
Oop, I accidentally posted the issue in the middle of writing it. I've updated it now. |
Apple fixed the bug in 12.3, so it is no longer required.
Not that I can see. I've confirmed it is also not working on 12.5.1. I wonder if Apple introduced a new bug? As a workaround, you can just leave out the service uuids. |
After trying it a few more times, it is working again (I also started the Packet Logger app in the meantime). Not sure what could have been the difference from the times when I was able to reproduce the issue. |
I just updated my MacOS from 12.4 to 12.5.1 and it seems to be working now! Thanks for your help. |
Description
Describe what you were trying to get done.
Use detection_callback.py example with MacOS 12.4
Tell us what happened, what went wrong, and what you expected to happen.
I wish to read advertising data from an ESP32 peripheral using the
detection_callback.py
example, but no advertising data is displayed. I know that when using MacOS 12.4, service UUIDs need to be provided to read advertising data (as discussed extensively, but I am still struggling to get it to work.What I Did
My ESP32 is set up as a server using the BLE_server example from Arduino. The ESP32 will intermittently broadcast advertising data including a service UUID (in this case,
4fafc201-1fb5-459e-8fcc-c5c9c331914b
)It all works as expected on my PC running Windows 10:
I use
discover.py
example to determine the ESP32 MAC address.Output:
94:B9:7E:DA:7C:FE: Long name works now
then
service_explorer.py
to confirm the service UUID.Ouput:
The correct service UUID is given in the second to last line.
I can also see this service UUID using the BLE scanner app I have on my phone.
I can then run
detection_callback.py
with this service_uuid(i.e. including
scanner = BleakScanner(simple_callback, ["4fafc201-1fb5-459e-8fcc-c5c9c331914b"])
).Output:
Everything seems to be working on my PC. However when I use the same
detection_callback.py
script including the service UUID on my Mac, all I get isAm I missing something obvious?
The text was updated successfully, but these errors were encountered: