Turning off WiFi
Posted: Sun Aug 04, 2019 2:55 am
For security, I need to fully disable the radios (WiFi and BT) on my ESP-32 and connect it to a wired LAN module (W5500 based).
I'm struggling to find a way to switch off the WiFi radio.
The documentation indicates that I should be able to call something like "WIfI.mode(WIFI_OFF)" or similar - but the arduino WiFi library that I'm using with PlatformIO does not have a mode method.
I've also seen references to setting "DPORT" registers, but no real guidance about how to do this and I'm not even sure if these registers are accessible from the arduino framework.
Is there a simple way?
I'm struggling to find a way to switch off the WiFi radio.
The documentation indicates that I should be able to call something like "WIfI.mode(WIFI_OFF)" or similar - but the arduino WiFi library that I'm using with PlatformIO does not have a mode method.
I've also seen references to setting "DPORT" registers, but no real guidance about how to do this and I'm not even sure if these registers are accessible from the arduino framework.
Is there a simple way?