• 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

esp32 Unit 2 – BLE – Notify and Scan

Q&A Forum › Category: ESP32 › esp32 Unit 2 – BLE – Notify and Scan
0 Vote Up Vote Down
x3mvz5pl5g5k asked 5 years ago

Hi

The Arduino BLE_notify example now seems different enough than the the git version such that it doesn’t work for me.  So using the git version.

Also, I am not seeing “MyESP32” in the scanner esp32 as it scrolls.  No name, only an address.

Question Tags: BLE bluetooth
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
What do you mean by it doesn’t work? What errors do you get?
Regards,
Sara

0 Vote Up Vote Down
x3mvz5pl5g5k answered 5 years ago

The monitor output for the “Examples” is static and nothing is sent out, whereas output from the git source shows sequential notification.   In either case I do see a change of vales in nRF Connect.

I would leave an image but I’m struggling with how to do that.

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

Hi.

You’re right. The example was updated and now it is a bit different.

However, I’ve tested both examples, and both were working well.

The version from the examples doesn’t show anything in the Serial Monitor because that example notifies a new value every 3 milliseconds, so it would crash the serial monitor if they tried to print every value.

However, if you want to see those values being printed, you can change the delay time to 1000 ms for example, and add a print to show the values.

For example:

if (deviceConnected) {
pCharacteristic->setValue((uint8_t*)&value, 4);
  Serial.println(value);
pCharacteristic->notify();
value++;
delay(1000); // bluetooth stack will go into congestion, if too many packets are sent, in 6 hours test i was able to go as low as 3ms
}

Both examples are working well, but are a bit different.

Anyway, we need to update the instructions to include the new example.

I hope this is clear.

Regards,
Sara

0 Vote Up Vote Down
x3mvz5pl5g5k answered 5 years ago

All is good and another bit of information learned!

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

Great!
I’ll close this question.
If you need further help, you just need to open a new question in our forum.
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.