esp32 nimble gatt server official example not working

akashgaur0001
Posts: 2
Joined: Wed Jun 24, 2026 6:58 am

esp32 nimble gatt server official example not working

Postby akashgaur0001 » Wed Jun 24, 2026 7:21 am

I am using the ble get started example from nimble named NimBLE_gatt_server(raw code) it connects with my using the app nrf connect but when i read write or subscribe at every 4 to 8 read or 4 to 8 write same for subscribe it gets automatically disconnected and if i again try to reconnect without manually resetting the control it do not connect.
Attachments
01NimBLE_GATT_Server.zip
example code
(92.52 KiB) Downloaded 3 times
subscribe .png
logs when the code is running and it gets disconnected
subscribe .png (98.19 KiB) Viewed 43 times
read.png
logs when the code is running and it gets disconnected
read.png (115.35 KiB) Viewed 43 times

irahul
Espressif staff
Espressif staff
Posts: 58
Joined: Fri Jun 18, 2021 10:07 am

Re: esp32 nimble gatt server official example not working

Postby irahul » Thu Jun 25, 2026 5:18 am

Error code 520 implies Connection Timeout indicating link supervision timeout or syncronization timeout. Is this issue seen with only one device ? Can you switch the phone to some other device and check ?

What happens if you use nimble's bleprph/ blecent example, do they work ?

akashgaur0001
Posts: 2
Joined: Wed Jun 24, 2026 6:58 am

Re: esp32 nimble gatt server official example not working

Postby akashgaur0001 » Thu Jun 25, 2026 9:40 am

I have changed both the controller and phone it does not work. Same issue comes in bleprph and blecent example.
Only Bluedroid_GATT_Server works correctly.

Who is online

Users browsing this forum: Bytespider, Google [Bot] and 6 guests