Page 1 of 1

How to get current WiFi Status

Posted: Sat Oct 19, 2019 3:24 am
by hellraise007
How do I ascertain what mode WiFi is on: OFF, AP, AP-STA or STA

Re: How to get current WiFi Status

Posted: Sat Oct 19, 2019 3:59 am
by lbernstone

Re: How to get current WiFi Status

Posted: Sat Oct 19, 2019 6:02 am
by hellraise007
lbernstone wrote:
Sat Oct 19, 2019 3:59 am
WiFi.getMode();

https://docs.espressif.com/projects/esp ... ifi_mode_t
What is WIFI_MODE_MAX & WIFI_MODE_NULL difference?

Re: How to get current WiFi Status

Posted: Mon Nov 11, 2019 2:52 pm
by lbernstone
MAX on any enum value is typically a dummy value set so that if you are iterating over the values, you know you have reached the end. It has no meaning. WIFI_OFF == WIFI_MODE_NULL.