Turn standard 4 bit UUID into 2 16 bit UUIDs

I am writing a program for a Garmin Edge which needs to connect to a power meter via Bluetooth, some of the characteristic / service UUIDs are 4 digits which cannot be used when coding for Garmin products. For example, this is the code to connect to one of the services vis Bluetooth:

public const POWER_METER_UART_SERVICE      = BluetoothLowEnergy.longToUuid(0x6E****************, 0xE0****************);

Is there anyway to convert these 4 bit UUIDs so they would be compatible with this format? 

Thanks

Parents Reply
  • Hi,

    Thanks! Slight race condition wrt my previous answer here (did not spot this comment that you posted one minute prior to me posting my answer.)

    Are we talking about standard 16 bit UUIDs as specified from Bluetooth SIG, or are we talking about 16 bit UUIDs from a third party (such as e.g. Garmin.)? Do you have the specification for the UUIDs that you need to use?

    Regards,
    Terje

Children
Related