esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

Create UUID

Open AquaMCU opened this issue 2 years ago • 1 comments

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

AquaMCU avatar Nov 03 '23 18:11 AquaMCU

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

h2zero avatar Nov 06 '23 00:11 h2zero