Obtaining Bluetooth LE scan response data with iOS

前端 未结 2 755
广开言路
广开言路 2020-12-09 22:47

I am working with Bluetooth Low Energy devices, and I was wondering whether it is possible to read the Scan Response Data to an advertisement with iOS and Core Bluetooth wit

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 23:24

    I am working with a peripheral that has some manufacturer data which I believe is transmitted in the scan response because there's no room for it in the initial advertisement with a 128-bit UUID plus channel, RSSI, and connectable flag. I am receiving two calls to didDiscoverPeripheral:... in quick succession (3ms apart including some handling time in my code). The first does not have the kCBAdvDataManufacturerData key in the dict, but the second does. I am assuming that the scan response is being requested automatically and the reply results in the second call.

提交回复
热议问题