trouble-host

Crates

git

Versions

default

Flavors

Macro uuid

Source
uuid!() { /* proc-macro */ }
Expand description

Create a UUID object from a string or other convertible literal, similar to how UUIDs can be specified in a gatt_service derivation.

Useful for exporting UUIDs into user contexts.

ยงExample

use trouble_host::prelude::*;

const MY_LONG_UUID: Uuid = uuid!("01234567-89AB-CDEF-0123-456789ABCDEF");
const MY_SHORT_UUID: Uuid = uuid!("9999");
const MY_INT_UUID: Uuid = uuid!(1337u16);