(device)
| 17 | this.startScanning(); |
| 18 | } |
| 19 | onDiscovered(device) { |
| 20 | if (device?.scanResponse?.completeName === $TESTMC.config.ble.client.targetDevice) { |
| 21 | this.stopScanning(); |
| 22 | this.connect(device); |
| 23 | } |
| 24 | } |
| 25 | onConnected(device) { |
| 26 | this.device = device; |
| 27 | device.discoverPrimaryService(CONFIG.SERVICE_UUID); |