How to get current WiFi Status

hellraise007
Posts: 16
Joined: Tue Aug 06, 2019 6:18 am

How to get current WiFi Status

Postby hellraise007 » Sat Oct 19, 2019 3:24 am

How do I ascertain what mode WiFi is on: OFF, AP, AP-STA or STA

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: How to get current WiFi Status

Postby lbernstone » Sat Oct 19, 2019 3:59 am


hellraise007
Posts: 16
Joined: Tue Aug 06, 2019 6:18 am

Re: How to get current WiFi Status

Postby hellraise007 » Sat Oct 19, 2019 6:02 am

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?

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: How to get current WiFi Status

Postby lbernstone » Mon Nov 11, 2019 2:52 pm

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.

Who is online

Users browsing this forum: No registered users and 86 guests