Function esp_idf_svc::sys::esp_nan_internal_subscribe_service
source ยท pub unsafe extern "C" fn esp_nan_internal_subscribe_service(
subscribe_cfg: *const wifi_nan_subscribe_cfg_t,
id: *mut u8,
cancel: bool,
) -> i32
Expand description
@brief Subscribe for a service within the NAN cluster
@attention This API should be called after esp_wifi_start() in NAN Mode.
@param subscribe_cfg Configuration parameters for subscribing for a service. @param id Identifier for the Subscribe service. @param cancel Cancel the service identified by the id.
@return
- ESP_OK: succeed
- others: failed