WiFi.status() (Arduino function) alternative for esp-idf
Posted: Mon Sep 06, 2021 8:38 am
Hello. I use basic basic esp-idf wifi example code to connect the ESP32 device to the wifi in STA mode. Some other functions that I use require the wifi connection and I want to double check whether the device sucesfully connected to the wifi. In Arduino code, you can easily do that using WiFi.status() method, but I cannot find what would be the esp-idf alternative. Pseudo code:
Code: Select all
if(wifi_connected_sucesfully){
do_http_request()
}
else{
attemt_to_reconnect()
{