ArduinoBLE - 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 BLE failed!");

    while (1);
  }

  // ...

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

  BLE.advertise();