ArduinoBLE - BLE.stopScan()

Stop scanning for Bluetooth® Low Energy devices that are advertising.

Syntax

BLE.stopScan()

Parameters

None

Returns

Nothing

Example


  // begin initialization
  if (!BLE.begin()) {
    Serial.println("starting Bluetooth® Low Energy module failed!");

    while (1);
  }

  Serial.println("BLE Central scan");

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

  
  BLE.stopScan();