uuid_from_u16

Function uuid_from_u16 

Source
pub fn uuid_from_u16(value: u16) -> Uuid
Expand description

Create Uuid from u16.

ยงExamples

use ble_data_struct::uuid_from_u16;
use uuid::uuid;

assert_eq!(
    uuid!("00001234-0000-1000-8000-00805F9B34FB"),
    uuid_from_u16(0x1234)
);