bt_uuid_to_string() helper should get the raw UUID value. Caller should
convert the 128-bit UUID before call this helper (if applicable).
bt_uuid_t stores 128-bit UUID using big-endian format (human-readable
format), swapping byte order is not necessary.
unsigned int data4;
unsigned short data5;
- uint128_t nvalue;
- const uint8_t *data = (uint8_t *) &nvalue;
-
- hton128(&uuid->value.u128, &nvalue);
+ const uint8_t *data = (uint8_t *) &uuid->value.u128;
memcpy(&data0, &data[0], 4);
memcpy(&data1, &data[4], 2);