Function openthread_sys::otCoapStart
source ยท pub unsafe extern "C" fn otCoapStart(
aInstance: *mut otInstance,
aPort: u16,
) -> otError
Expand description
Starts the CoAP server.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPort The local UDP port to bind to.
@retval OT_ERROR_NONE Successfully started the CoAP server. @retval OT_ERROR_FAILED Failed to start the CoAP server.