I am working on a simple Bluetooth GATT server running on a Raspberry Pi 3 model B. As a start I have used the example code of advertiser and gatt server. These examples are part of Bluez library. In order wrap everything I use example uart code from here.
My problem is that I can connect to Raspberry without any problem, but when I disconnect no actual disconnection happens. I have no any indication of disconnection not in btmon nor in dbus-monitor.
This behavior happens only on iOS (14.2) in Android (11, 8.1) everything works as expected.
There is issue on github here with almost the same problem with python-bluezero (They use dbus under the hood). I have tried suggested solutions but non of them helps.
I have seen the same question before, but this question didn't got any answers. I hope that I will be more lucky...