What is the function of BLE.poll()?

HI @MarkT ,

calling any event handlers you've registered with the library.

Does that mean that if I do not have any event handler, I do not need that?

In my code, I have 2 event handlers only:

void blePeripheralConnectHandler( BLEDevice central )
{
  digitalWrite( BLE_LED_PIN, HIGH );
  Serial.print( F ( "Connected to central: " ) );
  Serial.println( central.address() );
}

void blePeripheralDisconnectHandler( BLEDevice central )
{
  digitalWrite( BLE_LED_PIN, LOW );
  Serial.print( F( "Disconnected from central: " ) );
  Serial.println( central.address() );
}