esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

nimble GATT operation failed for unknown reason

Open PandaBalls opened this issue 1 year ago • 3 comments
trafficstars

I run the BLE server on my little esp32 c3 device with NimBLE, and I build the web app with vue. It works fine in Desktop Edge Browser: setValue / ReadValue / Receive Notify from esp device.

But on my Android Phone(Samsung), the Edge can bond with device, can setValue or ReadValue. But can not receive the notify from ESP32's NimBLE service. the mobile phone's Edge Console said: GATT operation failed for unknown reason

PandaBalls avatar Aug 16 '24 15:08 PandaBalls

more info from Edge Console: image

PandaBalls avatar Aug 16 '24 15:08 PandaBalls

await weightCharacteristic.startNotifications(); The Problem is here, VUE app .startNotifications() , this function can not work with NimBLE. It works fine with PlatformIO's Adruino Framework's BLE library.(It is too heavy)

PandaBalls avatar Aug 16 '24 15:08 PandaBalls

No idea why this would be a problem for you, hopefully someone who is more familiar with android can assist.

h2zero avatar Aug 19 '24 17:08 h2zero