标题是不言自明的.我尝试过CoreBluetooth,但我没有看到Apple Watch是一个连接的外设. 您需要检查 RSSI信号电平. 您可以使用: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPerip
您可以使用:
- (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI { NSLog(@"Did discover peripheral. peripheral: %@ rssi: %@, UUID: %@ advertisementData: %@ ", peripheral, RSSI, peripheral.UUID, advertisementData); //Do something when a peripheral is discovered. rssiLabel.text = [RSSI stringValue]; [manager retrievePeripherals:[NSArray arrayWithObject:(id)peripheral.UUID]];}