Complete the code to start WiFi provisioning using SoftAP mode.
wifi_prov_mgr_start_provisioning(WIFI_PROV_SECURITY_1, NULL, [1], NULL);The SoftAP scheme allows the device to create a WiFi access point for provisioning.
Complete the code to set the WiFi provisioning service name prefix.
wifi_prov_config_t config = { .service_name = [1] };The service name must be a string literal with quotes and include the underscore suffix.
Fix the error in the provisioning event handler to handle the PROV_END event.
case WIFI_PROV_EVENT_[1]: wifi_prov_mgr_deinit(); break;
The PROV_END event signals the end of provisioning and requires deinitialization.
Fill both blanks to create a dictionary of WiFi credentials with SSID and password.
wifi_credentials = {"ssid": [1], "password": [2];Both SSID and password must be string literals enclosed in quotes.
Fill all three blanks to check if provisioning is done and then connect to WiFi.
if (wifi_prov_mgr_is_provisioned() == [1]) { wifi_config_t wifi_config = { .sta = { .ssid = [2], .password = [3] } }; esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config); esp_wifi_connect(); }
Check if device is provisioned (true), then use string literals for SSID and password.
