Poll for Bluetooth® Low Energy radio events and handle them.
BLE.poll()
BLE.poll(timeout)
timeout: optional timeout in ms, to wait for event. If not specified defaults to 0 ms.
Nothing
// assign event handlers for connected, disconnected to peripheral
BLE.setEventHandler(BLEConnected, blePeripheralConnectHandler);
BLE.setEventHandler(BLEDisconnected, blePeripheralDisconnectHandler);
BLE.poll();