Skip to main content

otCoapMessageGetToken

Function otCoapMessageGetToken 

Source
pub unsafe extern "C" fn otCoapMessageGetToken(
    aMessage: *const otMessage,
) -> *const u8
Expand description

Returns a pointer to the Token value.

@deprecated This function is deprecated. Use otCoapMessageReadToken() instead.

@note A previously returned pointer (const uint8_t *) will be invalidated upon the next call to this function.

@param[in] aMessage A pointer to the CoAP message.

@returns A pointer to the Token value.