Add async operations to ble_v2

PiperOrigin-RevId: 472611661
This commit is contained in:
Hai Shang
2022-09-06 19:08:22 -07:00
committed by Copybara-Service
parent 851f5ec0dd
commit da54ba3422
11 changed files with 341 additions and 8 deletions
@@ -71,7 +71,7 @@ static const TxPowerLevel kTxPowerLevel = TxPowerLevel::kHigh;
- (void)testStartandStopScanning {
Uuid service_uuid(1234, 5678);
XCTAssertTrue(_ble->StartScanning(service_uuid, kTxPowerLevel, {}));
XCTAssertTrue(_ble->StartScanning(service_uuid, kTxPowerLevel, BleMedium::ScanCallback{}));
[NSThread sleepForTimeInterval:0.1];