ArduinoBLE - BLE.setAdvertisingInterval()

Set the advertising interval in units of 0.625 ms. Defaults to 100ms (160 * 0.625 ms) if not provided.

Syntax

BLE.setAdvertisingInterval(advertisingInterval)

Parameters

  • advertisingInterval: advertising interval in units of 0.625 ms

Returns

Nothing.

Example


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

    while (1);
  }

  // ...

  BLE.setAdvertisingInterval(320); // 200 * 0.625 ms

  BLE.advertise();