-
Notifications
You must be signed in to change notification settings - Fork 30
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
GATT Server name no longer advertising correctly #78
Comments
I'l continue investigating as well -- thanks @kevincar appreciate the response! |
This seems to be an issue with the I'll see if I can supply a temporary workaround that will need to rely on compiled code. |
Can you confirm that you were seeing the local device name prior to Monterey? The backend of bless utilizes the I'm assuming this wasn't a problem in the past given that you've created this issue but want to see if you can still see the local name if you shorten it to a name with < 10 bytes in length. |
Tested this issue again using Objective-C and found that MacOS Mojave allows long local names to be advertised, but no longer in Monterey. This behavior seems to be a result of how apple has coded the I've currently implemented a "work around" in which service UUIDs are dropped from the advertisement when the local name is longer than 10 bytes. If there are other possible implementations to be suggested, please reopen this issue with those suggestions, ideas, or references. |
@kevincar thank you for getting back to this. I can confirm that the local name I was using was never more than 10-bytes. I will check the workaround that you implemented but have also just changed some other tooling to expect the default name that is being advertised. Thank you again! |
The problem
After updating to macOS Monterey 12.3.1 with an iPhone running iOS 15.4.2, the specified GATT Server name is no longer advertising and I'm given a default name of "Mac" whenever starting the Bless server. I've confirmed that it's advertising my data, it's just that the name is incorrect.
Reproduction
Expected behavior
The server would advertise as "server-test".
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: