riot_coap_handler_demos::minicbor_helpers

Function encode_as_mac

Source
pub(crate) fn encode_as_mac<C, W: Write>(
    xs: &&[u8],
    e: &mut Encoder<W>,
    ctx: &mut C,
) -> Result<(), Error<W::Error>>
Expand description

Encode a &[u8] as a tagged MAC address.