We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca556ba commit 7c9203eCopy full SHA for 7c9203e
libraries/WiFi/examples/WPS/WPS.ino
@@ -25,7 +25,14 @@ WPS (pin is 00000000)
25
#define ESP_WPS_MODE WPS_TYPE_PBC
26
27
void wpsStart() {
28
- esp_wps_config_t config = WPS_CONFIG_INIT_DEFAULT(ESP_WPS_MODE);
+ esp_wps_config_t config;
29
+ //Same as config = WPS_CONFIG_INIT_DEFAULT(ESP_WPS_MODE);
30
+ config.wps_type = ESP_WPS_MODE;
31
+ strcpy(config.factory_info.manufacturer, "ESPRESSIF");
32
+ strcpy(config.factory_info.model_number, CONFIG_IDF_TARGET);
33
+ strcpy(config.factory_info.model_name, "ESPRESSIF IOT");
34
+ strcpy(config.factory_info.device_name, "ESP DEVICE");
35
+ strcpy(config.pin, "00000000");
36
esp_err_t err = esp_wifi_wps_enable(&config);
37
if (err != ESP_OK) {
38
Serial.printf("WPS Enable Failed: 0x%x: %s\n", err, esp_err_to_name(err));
0 commit comments