CoreBluetooth(BLE) - BT Server Error

Application is working on multiple Central(Master) Peripheral(*****) connection. Data like text, images can be exchanged between central and peripheral. While sending messages and manually connecting/disconnecting bluetooth of the device, OS throws an error.



Please find below the error shown on the logs file:

bluetoothd <Error>: Failed to write request for bearer 0x00F006F0 BM3 STATUS 4001 (status=65535)

bluetoothd <Error>: Command failed to execute with status 4001

bluetoothd<Error>: Command failed to execute with status 4001

bluetoothd <Error>: Unhandled stack status: 4001





Some data packets are lost while logs show above mentioned error. Multiple devices that are connected may crash or hang in between, but after sometime data flow resumes like before.



We have tried to look into the technical blogs for bluetooth and OS as well with no luck.



It would be a great help if some pointers are shared on the above status error code or cause on why this type of error can happen where the OS starts sharing error codes.



Response on the above would be appreciated.



Thanks In Advance.