Arduino core for ESP32 Wiki content

Switch off Bluetooth and WiFi

To switch off Bluetooth you need to include

#include <esp32-hal-bt.c>

then you can call

btStop();

To switch off WiFi you need to include

#include <WiFi.h>

then you can call

WiFi.mode( WIFI_OFF );