End CBPeripheralManager connection

Is there a recommended way to CBPeripheralManagerterminate the connection. The best way I've found so far is simply not to respond to the dynamic value, then the BLE stack seems to close the connection, but it seems pretty rude.

Should there be a better way?

+3
source share
1 answer

No, you cannot forcefully close the connection in a clear way from the peripheral side. There is no API for this.

You can abruptly break the connection without responding to the request, which leads to disconnection after a maximum of 30 seconds. This is standard behavior defined by the Bluetooth specification Vol.3 Part F 3.3.3

, 30 , . , . , , ATT.

+4

All Articles