pub unsafe extern "C" fn otCoapSecureStartWithMaxConnAttempts(
aInstance: *mut otInstance,
aPort: u16,
aMaxAttempts: u16,
aCallback: otCoapSecureAutoStopCallback,
aContext: *mut c_void,
) -> otError
Expand description
Starts the CoAP secure service and sets the maximum number of allowed connection attempts before stopping the agent automatically.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPort The local UDP port to bind to. @param[in] aMaxAttempts Maximum number of allowed connection request attempts. Zero indicates no limit. @param[in] aCallback Callback to notify if max number of attempts has reached and agent is stopped. @param[in] aContext A pointer to arbitrary context to use with @p aCallback.
@retval OT_ERROR_NONE Successfully started the CoAP agent. @retval OT_ERROR_ALREADY Already started.