ArduinoBLE - BLE.stopAdvertise()

Stop advertising.

Syntax

BLE.stopAdvertise()

Parameters

None

Returns

Nothing

Example


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

    while (1);
  }

  // ...

  BLE.advertise();

  // ...  

  BLE.stopAdvertise();