Rules/Tipps of UUID creation of BLE

Hi all!

I have question about how to create new UUIDs for the sketch, do we have any rules? I have now from one sample from the internet such Characteristic/Service UUIDs:

BLEService ledService("19B10000-E8F2-537E-4F6C-D104768A1214"); // Bluetooth® Low Energy LED Service
BLEStringCharacteristic ledCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLEWrite, 10);

The sketch works well, it is not a question of this topic. I don't understand how to generate such UUID for some other characteristics. Another sample has such UUIDs:

BLEService batteryService("180F");
BLEUnsignedCharCharacteristic batteryLevelChar("2A19", BLERead | BLENotify);

It shorter for example. I'm trying to ask which rules we have for creation maybe smth like:

  • amount of letters
  • amount of another characters
  • randomization

For example I can use some randomizer generator and create such strings, or how does it work?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.