Skip to content

BLE library notification receives no callback #11450

@bombzj

Description

@bombzj

Board

ESP32-S3 devkit C1

Device Description

plain module on breadboard

Hardware Configuration

using USB to connect to PC

Version

v3.2.0

IDE Name

VSCode

Operating System

Windows 10

Flash frequency

40Mhz

PSRAM enabled

yes

Upload speed

115200

Description

using BLE library like the example (client.ino)

pChar->registerForNotify(notifyCallback);

after register, not notify is received from callback function. switching to NimBLE works no problem. (same device, characteristic and descriptor).

Sketch

PlatformIO

Debug Message

[BLE] Reading all readable characteristics to trigger controller:
[BLE] Read characteristic 00002a4a-0000-1000-8000-00805f9b34fb length: 4 data: 11 01 00 03
[BLE] Read characteristic 00002a4b-0000-1000-8000-00805f9b34fb length: 283 data: 05 01 09 
05 A1 01 85 01 09 01 A1 00 09 30 09 31 15 00 27 FF FF 00 00 95 02 75 10 81 02 C0 09 01 A1 
00 09 32 09 35 15 00 27 FF FF 00 00 95 02 75 10 81 02 C0 05 02 09 C5 15 00 26 FF 03 95 01 
75 0A 81 02 15 00 25 00 75 06 95 01 81 03 05 02 09 C4 15 00 26 FF 03 95 01 75 0A 81 02 15 
00 25 00 75 06 95 01 81 03 05 01 09 39 15 01 25 08 35 00 46 3B 01 66 14 00 75 04 95 01 81 
42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03 05 09 19 01 29 0F 15 00 25 01 75 01 95 
0F 81 02 15 00 25 00 75 01 95 01 81 03 05 0C 0A B2 00 15 00 25 01 95 01 75 01 81 02 15 00 
25 00 75 07 95 01 81 03 05 0F 09 21 85 03 A1 02 09 97 15 00 25 01 75 04 95 01 91 02 15 00 
25 00 75 04 95 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09 50 66 01 10 55 0E 15 00 26 
FF 00 75 08 95 01 91 02 09 A7 15 00 26 FF 00 75 08 95 01 91 02 65 00 55 00 09 7C 15 00 26 
FF 00 75 08 95 01 91 02 C0 C0
[BLE] Read characteristic 00002a4d-0000-1000-8000-00805f9b34fb length: 0 data:
[BLE] Read characteristic 00002a4e-0000-1000-8000-00805f9b34fb length: 1 data: 01
[BLE] Attempting to enable notifications on characteristic: 00002a4d-0000-1000-8000-00805f9b34fb

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Activity

bombzj

bombzj commented on Jun 9, 2025

@bombzj
Author

I also tried to run the example in arduino IDE (BLE->Client), the same result.

Code:
// The remote service we wish to connect to.
static BLEUUID serviceUUID("00001812-0000-1000-8000-00805F9B34FB");
// The characteristic of the remote service we are interested in.
static BLEUUID charUUID("00002A4D-0000-1000-8000-00805F9B34FB");

Output:

Forming a connection to a3:e9:3b:92:28:53

  • Created client
  • Connected to server
  • Found our service
  • Found our characteristic
    The characteristic value was:
    We are now connected to the BLE Server.
    Setting new characteristic value to "Time since boot: 11"
    Setting new characteristic value to "Time since boot: 12"
    Setting new characteristic value to "Time since boot: 13"
self-assigned this
on Jun 9, 2025
added theissue type on Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: BLEIssues related to BLE

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @bombzj@lucasssvaz

      Issue actions

        BLE library notification receives no callback · Issue #11450 · espressif/arduino-esp32