ArduinoBLE - stopScan()

Stop scanning for BLE devices that are advertising.

Syntax

BLE.stopScan()

Parameters

None

Returns

Nothing

Example


  // begin initialization
  if (!BLE.begin()) {
    Serial.println("starting BLE failed!");

    while (1);
  }

  Serial.println("BLE Central scan");

  // start scanning for peripheral
  BLE.scan();

  
  BLE.stopScan();