How to know if WiFi antenna is totally off?

akolodner25
Posts: 27
Joined: Tue Nov 22, 2022 5:15 am

How to know if WiFi antenna is totally off?

Postby akolodner25 » Mon Aug 14, 2023 7:31 pm

I'm making an application that can be in one of two modes: BLE or WiFi. Since it will need to switch while running, I need to make sure that the WiFi functionality is really fully disabled, so it doesn't interfere with BLE (or cause security risks!). I use the WiFi library, and I turn it on and off with

Code: Select all

WiFi.softAP
and

Code: Select all

WiFi.softAPdisconnect
. (I have also figured out how to use

Code: Select all

WiFi.mode(WIFI_MODE_NULL or WIFI_MODE_AP)
to turn it on and off instead). Do these actually fully disable the WiFi functionality completely when called? Or is there some other way to do so? (I've confirmed that my computer cannot connect to the device when WiFi is off, but I don't know much about WiFi so I can't confirm that this is correct. Also I would need to confirm on the chip itself, to make sure the antenna isn't draining power or something when it's not supposed to be.)

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: How to know if WiFi antenna is totally off?

Postby bidrohini » Tue Aug 15, 2023 12:36 pm

These commands should totally turn of the wifi.

akolodner25
Posts: 27
Joined: Tue Nov 22, 2022 5:15 am

Re: How to know if WiFi antenna is totally off?

Postby akolodner25 » Tue Aug 15, 2023 2:19 pm

Great, thank you! Good to have confirmation :D

Who is online

Users browsing this forum: Google [Bot] and 115 guests