[][src]Type Definition openthread_sys::otCoapRequestHandler

type otCoapRequestHandler = Option<unsafe extern "C" fn(aContext: *mut c_void, aMessage: *mut otMessage, aMessageInfo: *const otMessageInfo)>;

This function pointer is called when a CoAP request with a given Uri-Path is received.

@param[in] aContext A pointer to arbitrary context information. @param[in] aMessage A pointer to the message. @param[in] aMessageInfo A pointer to the message info for @p aMessage.