IOS CoreBluetooth Per/Centr 交叉连接

IOS CoreBluetooth Per/Centr cross connection

是否可以同时交叉连接设备a的外设peripheral和b设备的central,同时交叉连接b设备的peripheral和a设备的central? 来自德国的问候!

根据 Bluetooth Specification v5.2,第 6 卷,PartB,第 4.5 节(连接状态),这是被禁止的:-

"There shall be only one connection between two LE device addresses. An initiator shall not send a connection request to an advertiser it is already connected to. If an advertiser receives a connection request from an initiator it is already connected to, it shall ignore that request."

换句话说,即使 swift 现在允许这样做,您也最好不要使用它,因为它违反规范,将来可能会被删除。