Function openthread_sys::otCoapNewMessage

source ·
pub unsafe extern "C" fn otCoapNewMessage(
    aInstance: *mut otInstance,
    aSettings: *const otMessageSettings,
) -> *mut otMessage
Expand description

Creates a new CoAP message.

@note If @p aSettings is ‘NULL’, the link layer security is enabled and the message priority is set to OT_MESSAGE_PRIORITY_NORMAL by default.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aSettings A pointer to the message settings or NULL to set default settings.

@returns A pointer to the message buffer or NULL if no message buffers are available or parameters are invalid.