Lines Matching refs:ESP_ERROR_CHECK
75 ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wps_ap_creds[ap_idx++]) ); in wifi_event_handler()
102 ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wps_ap_creds[0]) ); in wifi_event_handler()
109 ESP_ERROR_CHECK(esp_wifi_wps_disable()); in wifi_event_handler()
115 ESP_ERROR_CHECK(esp_wifi_wps_disable()); in wifi_event_handler()
116 ESP_ERROR_CHECK(esp_wifi_wps_enable(&config)); in wifi_event_handler()
117 ESP_ERROR_CHECK(esp_wifi_wps_start(0)); in wifi_event_handler()
121 ESP_ERROR_CHECK(esp_wifi_wps_disable()); in wifi_event_handler()
122 ESP_ERROR_CHECK(esp_wifi_wps_enable(&config)); in wifi_event_handler()
123 ESP_ERROR_CHECK(esp_wifi_wps_start(0)); in wifi_event_handler()
146 ESP_ERROR_CHECK(esp_netif_init()); in start_wps()
147 ESP_ERROR_CHECK(esp_event_loop_create_default()); in start_wps()
152 ESP_ERROR_CHECK(esp_wifi_init(&cfg)); in start_wps()
154 …ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &wifi_event_handler, NULL… in start_wps()
155 …ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &got_ip_event_handler, N… in start_wps()
157 ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA)); in start_wps()
158 ESP_ERROR_CHECK(esp_wifi_start()); in start_wps()
162 ESP_ERROR_CHECK(esp_wifi_wps_enable(&config)); in start_wps()
163 ESP_ERROR_CHECK(esp_wifi_wps_start(0)); in start_wps()
171 ESP_ERROR_CHECK(nvs_flash_erase()); in app_main()
174 ESP_ERROR_CHECK( ret ); in app_main()