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

Create UUID #136

Open
AquaMCU opened this issue Nov 3, 2023 · 1 comment
Open

Create UUID #136

AquaMCU opened this issue Nov 3, 2023 · 1 comment

Comments

@AquaMCU
Copy link

AquaMCU commented Nov 3, 2023

I need a little help.

I follow your documentation and have trouble creating a NimBLEUUID for the scale service of my BT device. It has the ID 0x180f.
When I try to implement that with the following line:

if(advertisedDevice->isAdvertisingService(NimBLEUUID( 0x180f )))

I get the following error:

error: call of overloaded 'NimBLEUUID(int)' is ambiguous

I can not wrap my brain around this. Can you please guide me in the right direction?

THX Oliver

@h2zero
Copy link
Owner

h2zero commented Nov 6, 2023

Try specifying the type of the hex value. (uint16_t)0x180f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants