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
and
. (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.)