Function openthread_sys::otCoapSecureConnect
source ยท pub unsafe extern "C" fn otCoapSecureConnect(
aInstance: *mut otInstance,
aSockAddr: *const otSockAddr,
aHandler: otHandleCoapSecureClientConnect,
aContext: *mut c_void,
) -> otError
Expand description
Initializes DTLS session with a peer.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aSockAddr A pointer to the remote socket address. @param[in] aHandler A pointer to a function that will be called when the DTLS connection state changes. @param[in] aContext A pointer to arbitrary context information.
@retval OT_ERROR_NONE Successfully started DTLS connection.