Skip to content

Commit

Permalink
Merge branch 'fix/wifi_prov_mgr_update_comment_ragading_sec_params_va…
Browse files Browse the repository at this point in the history
…lidity' into 'master'

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

See merge request espressif/esp-idf!19540
  • Loading branch information
mahavirj committed Aug 22, 2022
2 parents d20a4da + 9b05874 commit ed6e6cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/protocomm/include/common/protocomm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
* sec_params should contain pointer to struct of type
* 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
* - ESP_OK : Success
* - ESP_FAIL : Error adding endpoint / Endpoint with this name already exists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ esp_err_t wifi_prov_mgr_is_provisioned(bool *provisioned);
* This pointer should hold the struct of type
* wifi_prov_security1_params_t for protocomm security 1
* 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:
* - Wi-Fi SSID when provisioning mode is softAP
* - Device name when provisioning mode is BLE
Expand Down
3 changes: 3 additions & 0 deletions examples/provisioning/wifi_prov_mgr/main/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ void app_main(void)
* - NULL if not used
*/
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
* for the protocomm security 1.
* This does not need not be static i.e. could be dynamically allocated
Expand Down

0 comments on commit ed6e6cc

Please sign in to comment.