Merge branch 'fix/wifi_prov_mgr_update_comment_ragading_sec_params_validity' into 'master'

wifi_provisioning: Update API documentation to highlight argument validity...

See merge request espressif/esp-idf!19540
This commit is contained in:
Mahavir Jain 2022-08-22 17:59:48 +08:00
commit ed6e6ccdaf
3 changed files with 7 additions and 0 deletions

View File

@ -192,6 +192,8 @@ esp_err_t protocomm_req_handle(protocomm_t *pc, const char *ep_name, uint32_t se
* For protocomm security version 1 and 2 * For protocomm security version 1 and 2
* sec_params should contain pointer to struct of type * sec_params should contain pointer to struct of type
* protocomm_security1_params_t and protocmm_security2_params_t respectively. * protocomm_security1_params_t and protocmm_security2_params_t respectively.
* The contents of this pointer must be valid till the security session
* has been running and is not closed.
* @return * @return
* - ESP_OK : Success * - ESP_OK : Success
* - ESP_FAIL : Error adding endpoint / Endpoint with this name already exists * - ESP_FAIL : Error adding endpoint / Endpoint with this name already exists

View File

@ -301,6 +301,8 @@ esp_err_t wifi_prov_mgr_is_provisioned(bool *provisioned);
* This pointer should hold the struct of type * This pointer should hold the struct of type
* wifi_prov_security1_params_t for protocomm security 1 * wifi_prov_security1_params_t for protocomm security 1
* and wifi_prov_security2_params_t for protocomm security 2 respectively. * and wifi_prov_security2_params_t for protocomm security 2 respectively.
* This pointer and its contents should be valid till the provisioning service is
* running and has not been stopped or de-inited.
* @param[in] service_name Unique name of the service. This translates to: * @param[in] service_name Unique name of the service. This translates to:
* - Wi-Fi SSID when provisioning mode is softAP * - Wi-Fi SSID when provisioning mode is softAP
* - Device name when provisioning mode is BLE * - Device name when provisioning mode is BLE

View File

@ -336,6 +336,9 @@ void app_main(void)
* - NULL if not used * - NULL if not used
*/ */
const char *pop = "abcd1234"; const char *pop = "abcd1234";
/* If the pop is allocated dynamically, then it should be valid till the provisioning process is running.
* it can be only freed when the WIFI_PROV_END event is triggered */
/* This is the structure for passing security parameters /* This is the structure for passing security parameters
* for the protocomm security 1. * for the protocomm security 1.
* This does not need not be static i.e. could be dynamically allocated * This does not need not be static i.e. could be dynamically allocated