Skip on down to the menu.
Online UUID to C byte array converter
Shamelessly lifted from
https://yupana-engineering.com/online-uuid-to-c-array-converter
just in case it ever goes away.
Yupana Engineering, Ltd. gets all the credit.
Paste your UUID and click "Convert" to convert UUID to C byte array online!
Results:
/* UUID string: A7500000-65EF-4D6D-8AFF-621A7B6A7CAD */ int uuid_byte_array[16u] = {0xA7,0x50,0x00,0x00,0x65,0xEF,0x4D,0x6D,0x8A,0xFF,0x62,0x1A,0x7B,0x6A,0x7C,0xAD}; int ti_reverse_uuid[16u] = {0xAD,0x7C,0x6A,0x7B,0x1A,0x62,0xFF,0x8A,0x6D,0x4D,0xEF,0x65,0x00,0x00,0x50,0xA7}; int uuid_length = 16u;
Some Firmware such as TI RTOS with SimpleLink stack require a
reverse UUID byte array. This UUID to C code byte array converter
instantly converts UUID strings to a TI SimpleLink compatible byte
array UUID.
2019-05-25: Made v4 compliant.
See also online-c-array-generator
and online-reverse-byte-array tools.