ArduinoBLE - bleDevice.poll()

Poll for Bluetooth® Low Energy radio events for the specified Bluetooth® Low Energy device and handle them.

Syntax

bleDevice.poll()
bleDevice.poll(timeout)

Parameters

  • timeout: optional timeout in ms, to wait for event. If not specified defaults to 0 ms.

Returns

Nothing

Example


  // listen for Bluetooth® Low Energy centrals to connect:
  BLEDevice central = BLE.central();

  // if a central is connected to peripheral:
  if (central) {
    

   central.poll();

    // ...
  }