How to control scan request from iOS side as central?

Please suggest me how to manage the scan request from iOS side as central?

How to distinguish a response packet from a crawl and an ad packet in an ad declaration in the following delegate statement:

- (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI

      

+3


source to share


1 answer


The Bluetooth iOS Core brings these steps together for you. When iOS detects a peripheral that advertises one of the services you are viewing ( scanForPeripheralsWithServices:options:

), iOS automatically retrieves the scan response data.

There is currently no way to perform these tasks separately.



All ad data, including crawl response data, can be accessed through the advertisementData

NSDictionary parameter using Ad Data Search Keys .

Perhaps if you can explain what the problem is or what you are trying to do, we can offer additional help.

+2


source







All Articles