BLE 外设连接数量限制

我在Core Bluetooth中发现了连接数量相关的错误码:CBError.Code.connectionLimitReached。 但是并没有找到最大连接数量相关的定义。请问在哪里可以找到最大连接数量相关的定义?

Answered by Engineer in 842126022

Number of simultaneous connections available for an app is not documented nor defined.

This number will vary based on device type, model, and OS version. Additionally how many other apps are using BLE connections may also affect this number.

Therefore you should not be seeking or assuming a set number of possible connections, and instead use this error code to determine you have reached the limit dynamically.

Accepted Answer

Number of simultaneous connections available for an app is not documented nor defined.

This number will vary based on device type, model, and OS version. Additionally how many other apps are using BLE connections may also affect this number.

Therefore you should not be seeking or assuming a set number of possible connections, and instead use this error code to determine you have reached the limit dynamically.

BLE 外设连接数量限制
 
 
Q