summaryrefslogtreecommitdiffstatshomepage
path: root/lib/netutils/netutils.c
diff options
context:
space:
mode:
authorPetr KracĂ­k <petrkr@petrkr.net>2019-02-21 22:02:09 +0100
committerDamien George <damien.p.george@gmail.com>2019-02-26 00:49:40 +1100
commit21f9329d5d69516064f0ad77af311ac31a6dd009 (patch)
tree750a8068c5c2dc1f3746622bc64a2962a5f8511e /lib/netutils/netutils.c
parent55ff562c70825aa198c62cda73387946803a8805 (diff)
downloadmicropython-21f9329d5d69516064f0ad77af311ac31a6dd009.tar.gz
micropython-21f9329d5d69516064f0ad77af311ac31a6dd009.zip
esp32/modnetwork: Fix wifi.isconnected to return False after disconnect.
esp_wifi_connect will return ESP_OK for the normal path of execution which just means the reconnect is started, not that it is actually reconnected. In such a case wifi.isconnected() should return False until the reconnection is complete. After reconnect a GOT_IP event is called and it will change wifi_sta_connected back to True.
Diffstat (limited to 'lib/netutils/netutils.c')
0 files changed, 0 insertions, 0 deletions