nkolban / esp32-snippets

Sample ESP32 snippets and code fragments
https://leanpub.com/kolban-ESP32
Apache License 2.0
2.37k stars 710 forks source link

BLE_uart: The callback was never called. #1002

Open joektang opened 4 years ago

joektang commented 4 years ago

I tested the example of BLE_uart and tried on ESP32-Dev and iPhone's app BLE terminal (BluetoothLE). I can connect and disconnect, send data to apps, but I cannot receive any data from apps. After adding a few debugging, it appears that the set callback routine was never called.

BLE_uart.zip Here is my version of BLE_uart Here is the log from Serial Monitor 724812 0 0; 725812 0 0; Disconnected. start advertising 1130569 0 0; Connected 1131569 0 0; 1132569 0 0; 1133569 0 0; 1134569 0 0; 1135569 0 0; 1136569 0 0;

Here is the log from apps IMG_1297 Can somebody help? Thanks.