ArduinoBLE - BLE.poll()

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

Syntax

BLE.poll() 
BLE.poll(timeout)

Parameters

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

Returns

Nothing

Example


  // assign event handlers for connected, disconnected to peripheral
  BLE.setEventHandler(BLEConnected, blePeripheralConnectHandler);
  BLE.setEventHandler(BLEDisconnected, blePeripheralDisconnectHandler);

  

  BLE.poll();