Function esp_idf_sys::esp_nan_internal_publish_service

source ยท
pub unsafe extern "C" fn esp_nan_internal_publish_service(
    publish_cfg: *const wifi_nan_publish_cfg_t,
    id: *mut u8,
    cancel: bool,
) -> esp_err_t
Expand description

@brief Start Publishing a service in the NAN cluster

@attention This API should be called after esp_wifi_start() in NAN Mode.

@param publish_cfg Configuration parameters for publishing a service. @param id Identifier for the Publish service. @param cancel Cancel the service identified by the id.

@return

  • ESP_OK: succeed
  • others: failed