Skip to content
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

16bits UUID byte format on macos is different from other platforms. #68

Closed
nobonobo opened this issue Jun 18, 2021 · 4 comments
Closed
Labels
bug Something isn't working macos

Comments

@nobonobo
Copy link

nobonobo commented Jun 18, 2021

DIS service discovered UUID on macos:
180a0000-0000-0000-0000-000000000000

DIS service discovered UUID on others:
0000180a-0000-1000-8000-00805f9b34fb

specification:
128_bit_value = 16_bit_value * 2^96 + Bluetooth_Base_UUID

@deadprogram
Copy link
Member

Seems related to JuulLabs-OSS/cbgo#3 what do you think @nobonobo?

@nobonobo
Copy link
Author

nobonobo commented Jul 2, 2021

Perhaps this line will convert the UUID of unknown length to a string and parse it.
As a result, I think I got a UUID byte string that is different from other platforms.

dsvcuuid, _ := ParseUUID(dsvc.UUID().String())

May be, We will need support 32bits UUID format for JuulLabs-OSS/cbgo#3.

@deadprogram
Copy link
Member

This has now been fixed in #113

Thanks for helping out @nobonobo

I will marked it to be closed after the next release.

@deadprogram deadprogram added bug Something isn't working next-release labels Aug 30, 2022
@deadprogram
Copy link
Member

The fix for this has been released, so now closing. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos
Projects
None yet
Development

No branches or pull requests

2 participants