iOS 8 CoreBluetooth deprecated RSSI methods

前端 未结 4 1240
天命终不由人
天命终不由人 2020-12-31 17:31

So from reading the CBPeripheralDelegate documentation, it appears that RSSI and peripheralDidUpdateRSSI:error: were deprecated with i

4条回答
  •  死守一世寂寞
    2020-12-31 17:41

    In iOS 8.1.1, peripheral:didReadRSSI:error: will only get called for peripherals that you are connected to. If you've merely discovered the peripherals with a scan and then called readRSSI on them, the callback will not be called.

    Try connecting to the peripheral first (via CBCentralManager's connectPeripheral:options:), and then calling readRSSI.

提交回复
热议问题