openthread_sys

Function otCoapSetDefaultHandler

Source
pub unsafe extern "C" fn otCoapSetDefaultHandler(
    aInstance: *mut otInstance,
    aHandler: otCoapRequestHandler,
    aContext: *mut c_void,
)
Expand description

Sets the default handler for unhandled CoAP requests.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aHandler A function pointer that shall be called when an unhandled request arrives. @param[in] aContext A pointer to arbitrary context information. May be NULL if not used.