Closed ghost closed 6 years ago
I turn off BLE with btStop()
https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-bt.c
Thank you very much!
But that works on Arduino IDE??
I included
For wifi you can use:
WiFi.mode( WIFI_MODE_NULL );
should work in Arduino IDE.
Thank you!
With "WiFi.mode( WIFI_MODE_NULL);" The current compsuntion is the same. I teste with and without that line and I dont see current variation. Is there another way to turn off the radio part on the ESP32??
I am not sure, the above info came from issue https://github.com/espressif/arduino-esp32/issues/75.
Maybe turn of both radios? They may be implemented as a single radio that is multiplexed.
There is an example for this: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiBlueToothSwitch/WiFiBlueToothSwitch.ino
to turn wifi and Bluetooth off:
WiFi.mode(WIFI_OFF);
btStop();
Thank you very much, friends!
Stopping bluetooth with btStop();
will save energy?
btStop
doesn't work. It freezes the app.
esp_bt_controller_disable doesn't return anything. Just blocks the app
@mrdazhuk should be fixed in the latest master
@me-no-dev the problem still exists.
This works for me in Master and I can no longer reproduce your problem. Did you uninstall the core from the board manager first?
SerialBT.begin("ESP32test");
delay(1000);
SerialBT.end();//calls btStop();
Let me check. Thank you
@me-no-dev could you please share your configuration from platformio.ini. seems to me i'm doing something wrong, because BluetoothSerial.cpp is little different. I've removed everything, but still different
@mrdazhuk sorry, I do not use PIO
Hi, I need, in order to save battery, turn off the radio and the BLE. How can I do that on Arduino IDE?