Core Bluetooth - constant RSSI updates of in-range devices

后端 未结 4 930
遥遥无期
遥遥无期 2020-12-08 03:34

I just started with the core bluetooth framework for iOS and I\'m developing an app that needs to constantly scan for BLE devices so that I can retrieve their RSSI number ev

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 04:09

    You shouldn't do continous scanning as it is very costly for power. Once you discovered devices you have an array of CBPeripheral objects returned to you. On CBPeripheral you can read RSSI and get a callback when RSSI changes. See the following documentation: http://developer.apple.com/library/mac/#documentation/CoreBluetooth/Reference/CBPeripheralDelegate_Protocol/translated_content/CBPeripheralDelegate.html

提交回复
热议问题