2017-03-10 56 views
0

我想在連接時綁定ble-device。 而當重新啓動應用程序時,重新連接綁定列表中的ble-device。如何在swift中綁定Ble設備列表?

如何連接ble-device與綁定? 如何獲取綁定列表? 如果沒有得到綁定列表,怎麼連接設備?

請回答。

回答

0

嗯,它太大面積來解釋只是答案。從閱讀開始https://developer.apple.com/reference/corebluetooth

主要類是CBCentralManager,CBPeripheral,CBCharacteristic。僅用於列表設備,CBCentralManagerDelegate, CBPeripheralDelegate將有所幫助。

+0

我已經在使用didDiscover,didConnect,didDiscoverServices,didDiscoverCharacteristicsFor,didDiscoverDescriptorsFor和didUpdateValueFor連接設備。我認爲它會像android一樣。但我不知道ios ... –