Просмотр исходного кода

change pin code value type and wps API comments.

Xia Xiao Tian 9 лет назад
Родитель
Сommit
c441d3630c
2 измененных файлов с 1 добавлено и 2 удалено
  1. 1 1
      components/esp32/include/esp_event.h
  2. 0 1
      components/esp32/include/esp_wps.h

+ 1 - 1
components/esp32/include/esp_event.h

@@ -78,7 +78,7 @@ typedef struct {
 } system_event_sta_got_ip_t;
 
 typedef struct {
-    uint8_t pin_code;         /**< PIN code of station in enrollee mode */
+    uint8_t pin_code[8];         /**< PIN code of station in enrollee mode */
 }system_event_sta_wps_er_pin_t;
 
 typedef struct {

+ 0 - 1
components/esp32/include/esp_wps.h

@@ -63,7 +63,6 @@ typedef enum wps_type {
   *          - ESP_OK : succeed
   *          - ESP_ERR_WIFI_WPS_TYPE : wps type is invalid
   *          - ESP_ERR_WIFI_WPS_MODE : wifi is not in station mode or sniffer mode is on
-  *          - ESP_ERR_WIFI_WPS_SM : wps state machine is not initialized
   *          - ESP_ERR_WIFI_FAIL : wps initialization fails
   */
 esp_err_t esp_wifi_wps_enable(wps_type_t wps_type);