• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Bluetooth low power on ESP32

Q&A Forum › Bluetooth low power on ESP32
0 Vote Up Vote Down
Michael Gerndt asked 4 years ago

The function in the notify example

BLEDevice::init(“myESP32”);

does not terminate. The board reboot due to a watchdog. Do I have to enable bluetooth before running the sketch?

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Can you tell me what is the exact example that you are trying to follow?
Regards,
Sara

0 Vote Up Vote Down
Michael Gerndt answered 4 years ago

Sara, first let me say that I like the book. It is good to have such a well presented intro. With respect to Bluetooth, I am trying to rung the two codes in Unit 2 of Module 5. I tried two different ESP32 boards and reinstalled Arduino and the boards. My suspicion is that Bluetooth is not enabled on the board. May be something that I have to change in sdkconfig somewhere?
Michael

0 Vote Up Vote Down
Michael Gerndt answered 4 years ago

Thanks to a student I found out that switching from the ESP WROOM Dev board to ESP WROVER Dev board in the Arduino GUI makes a difference. With the latter the BLE sketch works. But why. The board is actually ESP-WROOM-32 based. 

0 Vote Up Vote Down
Michael Gerndt answered 4 years ago

I found the problem. I changed the CPU clock frequency to 10 MHz (esp32.menu.CPUFreq.10=10MHz (40MHz XTAL)) on the WROOM board. This seems to switch off Wifi and bluetooth. Switching back to 240 MHz, bluetooth works. Any explanation?

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Michael.
Thanks for sharing that valuable information.
I wasn’t aware of that. We never had to change any settings to make bluetooth work on our boards. So, I don’t know why it’s that the case for your board.
So, now you are able to run the examples properly, right?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.