Function esp_idf_svc::hal::sys::esp_ping_new_session
source ยท pub unsafe extern "C" fn esp_ping_new_session(
config: *const esp_ping_config_t,
cbs: *const esp_ping_callbacks_t,
hdl_out: *mut *mut c_void,
) -> i32
Expand description
@brief Create a ping session
@param config ping configuration @param cbs a bunch of callback functions invoked by internal ping task @param hdl_out handle of ping session @return - ESP_ERR_INVALID_ARG: invalid parameters (e.g. configuration is null, etc) - ESP_ERR_NO_MEM: out of memory - ESP_FAIL: other internal error (e.g. socket error) - ESP_OK: create ping session successfully, user can take the ping handle to do follow-on jobs