我们要开发一个数据节点,它可以被多个Central设备连接,交换完数据后Central设备会断开连接。考虑到Central设备可能被非预期的其他设备连接,这时Peripheral应该可以拒绝连接并主动与之断开连接,否则其他Central设备将无法正常连接。但是在simpleBLEPeripheral示例中没有这样的代码。请问如何实现?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我们要开发一个数据节点,它可以被多个Central设备连接,交换完数据后Central设备会断开连接。考虑到Central设备可能被非预期的其他设备连接,这时Peripheral应该可以拒绝连接并主动与之断开连接,否则其他Central设备将无法正常连接。但是在simpleBLEPeripheral示例中没有这样的代码。请问如何实现?